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 aCollaboration
has 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 CollaborationCompletedMessage
forCollaboration(Collaboration collaboration)
Creates a new instance for the givenCollaboration
.org.joda.time.Duration
getDuration()
Returns the time thisCollaboration
took to complete.org.joda.time.DateTime
getEndTime()
Returns the time when theCollaboration
has been completed.org.joda.time.DateTime
getStartTime()
Returns the time when theCollaboration
has 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 theCollaboration
has been started.- Returns:
- the start time
-
getEndTime
@Nonnull public org.joda.time.DateTime getEndTime()
Returns the time when theCollaboration
has been completed.- Returns:
- the end time
-
getDuration
@Nonnull public org.joda.time.Duration getDuration()
Returns the time thisCollaboration
took to complete.- Returns:
- the duration
-
-