Interface ConnectionListener
- All Known Subinterfaces:
HostedService
- All Known Implementing Classes:
AbstractHostedConnectionService, AbstractHostedService, HostedServiceManager.ConnectionObserver, ObjectStore.ServerEventHandler, RmiHostedService, RpcHostedService, ServerSerializerRegistrationsService
public interface ConnectionListener
Listener that is notified about connection arrivals and
removals within a server.
- Author:
- Paul Speed
-
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.
-
Method Details
-
connectionAdded
Called when a connection has been added to the specified server and is fully setup.- Parameters:
server- the server that accepted the connectionconn- the newly connected client
-
connectionRemoved
Called when a connection has been removed from the specified server.- Parameters:
server- the server that removed the connectionconn- the disconnected client
-