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.
-
Nested Class Summary
Nested classes/interfaces inherited from interface ClientStateListener
ClientStateListener.DisconnectInfo -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidCalled when the specified client is fully connected to the remote server.voidCalled when the client has disconnected from the remote server.voidmessageReceived(Object source, Message m) Called when a message is received from a source.
-
Constructor Details
-
ClientEventHandler
public ClientEventHandler()Creates the client-side event handler.
-
-
Method Details
-
messageReceived
Description copied from interface:MessageListenerCalled when a message is received from a source.- Specified by:
messageReceivedin interfaceMessageListener- Parameters:
source- the connection or endpoint that delivered the messagem- the received message
-
clientConnected
Description copied from interface:ClientStateListenerCalled when the specified client is fully connected to the remote server.- Specified by:
clientConnectedin interfaceClientStateListener- Parameters:
c- the connected client
-
clientDisconnected
Description copied from interface:ClientStateListenerCalled 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:
clientDisconnectedin interfaceClientStateListener- Parameters:
c- the disconnected clientinfo- extra disconnect information, or null for a normal close
-