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)
ConnectionStateListener
stateChange
in interface ConnectionStateListener
connection
- 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.Entry
public ConnectionService getConnectionService()
getConnectionService
in interface ConnectionManager.Entry
public void dispose()
dispose
in interface ConnectionManager.Entry