Class CollaborationCompletedMessage

java.lang.Object
it.tidalwave.actor.MessageSupport
it.tidalwave.actor.CollaborationCompletedMessage
All Implemented Interfaces:
Collaboration.Provider, As, Serializable

@Message @Immutable public class CollaborationCompletedMessage extends MessageSupport
This message notifies that a Collaboration has been completed.
Author:
Fabrizio Giudici
See Also:
  • Method Details

    • forCollaboration

      @Nonnull public static CollaborationCompletedMessage forCollaboration(@Nonnull Collaboration collaboration)
      Creates a new instance for the given Collaboration.
      Parameters:
      collaboration - the Collaboration
      Returns:
      the new instance
    • getStartTime

      @Nonnull public ZonedDateTime getStartTime()
      Returns the time when the Collaboration has been started.
      Returns:
      the start time
    • getEndTime

      @Nonnull public ZonedDateTime getEndTime()
      Returns the time when the Collaboration has been completed.
      Returns:
      the end time
    • getDuration

      @Nonnull public Duration getDuration()
      Returns the time this Collaboration took to complete.
      Returns:
      the duration