Package it.tidalwave.actor
Class CollaborationCompletedMessage
java.lang.Object
it.tidalwave.actor.MessageSupport
it.tidalwave.actor.CollaborationCompletedMessage
- All Implemented Interfaces:
Collaboration.Provider
,As
,Serializable
This message notifies that a
Collaboration
has been completed.- Author:
- Fabrizio Giudici
- See Also:
-
Nested Class Summary
-
Field Summary
Fields inherited from class it.tidalwave.actor.MessageSupport
collaboration
-
Method Summary
Modifier and TypeMethodDescriptionforCollaboration
(Collaboration collaboration) Creates a new instance for the givenCollaboration
.Returns the time thisCollaboration
took to complete.Returns the time when theCollaboration
has been completed.Returns the time when theCollaboration
has been started.Methods inherited from class it.tidalwave.actor.MessageSupport
getCollaboration, maybeAs, send, sendDirectly, sendLater
-
Method Details
-
forCollaboration
@Nonnull public static CollaborationCompletedMessage forCollaboration(@Nonnull Collaboration collaboration) Creates a new instance for the givenCollaboration
.- Parameters:
collaboration
- theCollaboration
- Returns:
- the new instance
-
getStartTime
Returns the time when theCollaboration
has been started.- Returns:
- the start time
-
getEndTime
Returns the time when theCollaboration
has been completed.- Returns:
- the end time
-
getDuration
Returns the time thisCollaboration
took to complete.- Returns:
- the duration
-