We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.collaborationengine.
Package com.vaadin.collaborationengine
Class MembershipEvent
java.lang.Object
java.util.EventObject
com.vaadin.collaborationengine.MembershipEvent
All Implemented Interfaces:
The event dispatched when a node joins or leaves the backend.
Author:
Vaadin Ltd
See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
The type of the event.
-
Field Summary
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
ConstructorsConstructorDescriptionMembershipEvent
(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
-