public class GenericBaseDevice extends IoHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected Set<ConnectionListener> |
connectionListeners |
| Constructor and Description |
|---|
GenericBaseDevice() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConnectionListener(ConnectionListener listener) |
protected void |
fireConnected() |
protected void |
fireConnectionFailed(Throwable e) |
protected void |
fireDisconnected(Throwable e) |
void |
removeConnectionListener(ConnectionListener listener) |
exceptionCaught, messageReceived, messageSent, sessionClosed, sessionCreated, sessionIdle, sessionOpenedprotected final Set<ConnectionListener> connectionListeners
public void addConnectionListener(ConnectionListener listener)
public void removeConnectionListener(ConnectionListener listener)
protected void fireConnectionFailed(Throwable e)
protected void fireDisconnected(Throwable e)
protected void fireConnected()