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.
Class MembershipEvent
- java.lang.Object
-
- java.util.EventObject
-
- com.vaadin.collaborationengine.MembershipEvent
-
All Implemented Interfaces:
public class MembershipEvent extends EventObject
The event dispatched when a node joins or leaves the backend.
Author:
Vaadin Ltd
See Also:
-
-
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 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
-
-