Class MembershipEvent

  • All Implemented Interfaces:
    java.io.Serializable

    public class MembershipEvent
    extends java.util.EventObject
    The event dispatched when a node joins or leaves the backend.
    Author:
    Vaadin Ltd
    See Also:
    Serialized Form
    • Constructor Detail

      • MembershipEvent

        public MembershipEvent​(MembershipEvent.MembershipEventType type,
                               java.util.UUID nodeId,
                               CollaborationEngine collaborationEngine)
        Creates a new event.
        Parameters:
        type - the type of the event, not null
        nodeId - the node identifier, not null
        collaborationEngine - the source of the event, not null
    • Method Detail

      • getNodeId

        public java.util.UUID getNodeId()
        Gets the node identifier.
        Returns:
        the node identifier, not null
      • getSource

        public CollaborationEngine getSource()
        Overrides:
        getSource in class java.util.EventObject