Package com.vaadin.collaborationengine
Class MembershipEvent
java.lang.Object
java.util.EventObject
com.vaadin.collaborationengine.MembershipEvent
- All Implemented Interfaces:
Serializable
The event dispatched when a node joins or leaves the backend.
- Author:
- Vaadin Ltd
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The type of the event. -
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorDescriptionMembershipEvent
(MembershipEvent.MembershipEventType type, UUID nodeId, CollaborationEngine collaborationEngine) Creates a new event. -
Method Summary
Modifier and TypeMethodDescriptionGets the node identifier.getType()
Gets the type of the event.Methods inherited from class java.util.EventObject
toString
-
Constructor Details
-
MembershipEvent
public MembershipEvent(MembershipEvent.MembershipEventType type, UUID nodeId, CollaborationEngine collaborationEngine) Creates a new event.- Parameters:
type
- the type of the event, notnull
nodeId
- the node identifier, notnull
collaborationEngine
- the source of the event, notnull
-
-
Method Details
-
getType
Gets the type of the event.- Returns:
- the type of the event, not
null
-
getNodeId
Gets the node identifier.- Returns:
- the node identifier, not
null
-
getSource
- Overrides:
getSource
in classEventObject
-