public class ConnectionManager.EntryImpl extends Object implements ConnectionManager.Entry, ConnectionStateListener
| Constructor and Description |
|---|
ConnectionManager.EntryImpl(ConnectionDescriptor connectionDescriptor,
ConnectionService connectionService,
ServiceRegistration<?> serviceRegistration) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
ConnectionDescriptor |
getConnectionDescriptor() |
ConnectionService |
getConnectionService() |
void |
stateChange(Connection connection,
ConnectionState state,
Throwable error)
Notify a state change
|
public ConnectionManager.EntryImpl(ConnectionDescriptor connectionDescriptor, ConnectionService connectionService, ServiceRegistration<?> serviceRegistration)
public void stateChange(Connection connection, ConnectionState state, Throwable error)
ConnectionStateListenerstateChange in interface ConnectionStateListenerconnection - the connection that changedstate - the new state of the connectionerror - some error information that lead to the new state (can be null if it was not an error)public ConnectionDescriptor getConnectionDescriptor()
getConnectionDescriptor in interface ConnectionManager.Entrypublic ConnectionService getConnectionService()
getConnectionService in interface ConnectionManager.Entrypublic void dispose()
dispose in interface ConnectionManager.Entry