Package com.vaadin.collaborationengine
Class MembershipEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.collaborationengine.MembershipEvent
-
- All Implemented Interfaces:
Serializable
public class MembershipEvent extends EventObject
The event dispatched when a node joins or leaves the backend.- Author:
- Vaadin Ltd
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MembershipEvent.MembershipEventType
The type of the event.
-
Field Summary
-
Fields inherited from class java.util.EventObject
source
-
-
Constructor Summary
Constructors Constructor Description MembershipEvent(MembershipEvent.MembershipEventType type, UUID nodeId, CollaborationEngine collaborationEngine)
Creates a new event.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UUID
getNodeId()
Gets the node identifier.CollaborationEngine
getSource()
MembershipEvent.MembershipEventType
getType()
Gets the type of the event.-
Methods inherited from class java.util.EventObject
toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getType
public MembershipEvent.MembershipEventType getType()
Gets the type of the event.- Returns:
- the type of the event, not
null
-
getNodeId
public UUID getNodeId()
Gets the node identifier.- Returns:
- the node identifier, not
null
-
getSource
public CollaborationEngine getSource()
- Overrides:
getSource
in classEventObject
-
-