Package it.tidalwave.actor
Class CollaborationCompletedMessage
- java.lang.Object
-
- it.tidalwave.actor.MessageSupport
-
- it.tidalwave.actor.CollaborationCompletedMessage
-
- All Implemented Interfaces:
Collaboration.Provider,As,java.io.Serializable
@Message @Immutable public class CollaborationCompletedMessage extends MessageSupport
This message notifies that aCollaborationhas been completed.- Author:
- Fabrizio Giudici
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class it.tidalwave.actor.MessageSupport
collaboration
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CollaborationCompletedMessageforCollaboration(Collaboration collaboration)Creates a new instance for the givenCollaboration.org.joda.time.DurationgetDuration()Returns the time thisCollaborationtook to complete.org.joda.time.DateTimegetEndTime()Returns the time when theCollaborationhas been completed.org.joda.time.DateTimegetStartTime()Returns the time when theCollaborationhas been started.-
Methods inherited from class it.tidalwave.actor.MessageSupport
getCollaboration, maybeAs, send, sendDirectly, sendLater
-
-
-
-
Method Detail
-
forCollaboration
@Nonnull public static CollaborationCompletedMessage forCollaboration(@Nonnull Collaboration collaboration)
Creates a new instance for the givenCollaboration.- Parameters:
collaboration- theCollaboration- Returns:
- the new instance
-
getStartTime
@Nonnull public org.joda.time.DateTime getStartTime()
Returns the time when theCollaborationhas been started.- Returns:
- the start time
-
getEndTime
@Nonnull public org.joda.time.DateTime getEndTime()
Returns the time when theCollaborationhas been completed.- Returns:
- the end time
-
getDuration
@Nonnull public org.joda.time.Duration getDuration()
Returns the time thisCollaborationtook to complete.- Returns:
- the duration
-
-