Class RemoteServerEvent

java.lang.Object
net.user1.union.core.event.BaseEvent
net.user1.union.core.event.RemoteServerEvent
All Implemented Interfaces:
Externalizable, Serializable, Event, RemoteEvent

public class RemoteServerEvent extends BaseEvent implements RemoteEvent, Externalizable
RemoteServerEvent is a simple data class used to pass information from the server to registered event-listeners when a remote server event occurs. The RemoteServerEvent class also defines constants representing the available server events. To register for a remote server event, use the Server class's addRemoteEventListener() method.
See Also:
  • Field Details

    • REMOTE_ROOM_CREATED

      public static final String REMOTE_ROOM_CREATED
      Dispatched when a clustered room has been created on a node. When the room is automatically created on other nodes (eg. slave room in master-slave) the event will not be dispatched by those nodes.
      See Also:
    • REMOTE_ROOM_REMOVED

      public static final String REMOTE_ROOM_REMOVED
      Dispatched when a clustered master room has been removed from a node. The removal of a room in slave mode never causes this event to be dispatched.
      See Also:
    • PROP_ROOMDEF

      public static final String PROP_ROOMDEF
      This property contains the RoomDef when REMOTE_ROOM_CREATED is dispatched.
      See Also:
  • Constructor Details

    • RemoteServerEvent

      public RemoteServerEvent()
      Constructor.
    • RemoteServerEvent

      public RemoteServerEvent(String nodeID, String roomID)
      Constructor.
    • RemoteServerEvent

      public RemoteServerEvent(String nodeID, String roomID, Map<String,Object> props)
      Constructor.
  • Method Details