Class ObjectStore.ClientEventHandler

java.lang.Object
com.jme3.network.rmi.ObjectStore.ClientEventHandler
All Implemented Interfaces:
ClientStateListener, MessageListener
Enclosing class:
ObjectStore

public class ObjectStore.ClientEventHandler extends Object implements MessageListener, ClientStateListener
Handles client-side RMI message and connection callbacks.
  • Constructor Details

    • ClientEventHandler

      public ClientEventHandler()
      Creates the client-side event handler.
  • Method Details

    • messageReceived

      public void messageReceived(Object source, Message m)
      Description copied from interface: MessageListener
      Called when a message is received from a source.
      Specified by:
      messageReceived in interface MessageListener
      Parameters:
      source - the connection or endpoint that delivered the message
      m - the received message
    • clientConnected

      public void clientConnected(Client c)
      Description copied from interface: ClientStateListener
      Called when the specified client is fully connected to the remote server.
      Specified by:
      clientConnected in interface ClientStateListener
      Parameters:
      c - the connected client
    • clientDisconnected

      public void clientDisconnected(Client c, ClientStateListener.DisconnectInfo info)
      Description copied from interface: ClientStateListener
      Called when the client has disconnected from the remote server. If info is null then the client shut down the connection normally, otherwise the info object contains additional information about the disconnect.
      Specified by:
      clientDisconnected in interface ClientStateListener
      Parameters:
      c - the disconnected client
      info - extra disconnect information, or null for a normal close