Class ObjectStore.ServerEventHandler
java.lang.Object
com.jme3.network.rmi.ObjectStore.ServerEventHandler
- All Implemented Interfaces:
ConnectionListener, MessageListener<HostedConnection>
- Enclosing class:
ObjectStore
public class ObjectStore.ServerEventHandler
extends Object
implements MessageListener<HostedConnection>, ConnectionListener
Handles server-side RMI message and connection callbacks.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnectionAdded(Server server, HostedConnection conn) Called when a connection has been added to the specified server and is fully setup.voidconnectionRemoved(Server server, HostedConnection conn) Called when a connection has been removed from the specified server.voidmessageReceived(HostedConnection source, Message m) Called when a message is received from a source.
-
Constructor Details
-
ServerEventHandler
public ServerEventHandler()Creates the server-side event handler.
-
-
Method Details
-
messageReceived
Description copied from interface:MessageListenerCalled when a message is received from a source.- Specified by:
messageReceivedin interfaceMessageListener<HostedConnection>- Parameters:
source- the connection or endpoint that delivered the messagem- the received message
-
connectionAdded
Description copied from interface:ConnectionListenerCalled when a connection has been added to the specified server and is fully setup.- Specified by:
connectionAddedin interfaceConnectionListener- Parameters:
server- the server that accepted the connectionconn- the newly connected client
-
connectionRemoved
Description copied from interface:ConnectionListenerCalled when a connection has been removed from the specified server.- Specified by:
connectionRemovedin interfaceConnectionListener- Parameters:
server- the server that removed the connectionconn- the disconnected client
-