T - the connection category.@Immutable public abstract class AbstractIODispatch<T> extends java.lang.Object implements IOEventDispatch
IOEventDispatch implementation that supports both plain (non-encrypted)
and SSL encrypted HTTP connections.CONNECTION_KEY| 构造器和说明 |
|---|
AbstractIODispatch() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
connected(IOSession session)
Triggered after the given session has been just created.
|
protected abstract T |
createConnection(IOSession session) |
void |
disconnected(IOSession session)
Triggered when the given session has been terminated.
|
void |
inputReady(IOSession session)
Triggered when the given session has input pending.
|
protected abstract void |
onClosed(T conn) |
protected abstract void |
onConnected(T conn) |
protected abstract void |
onException(T conn,
java.io.IOException ex) |
protected abstract void |
onInputReady(T conn) |
protected abstract void |
onOutputReady(T conn) |
protected abstract void |
onTimeout(T conn) |
void |
outputReady(IOSession session)
Triggered when the given session is ready for output.
|
void |
timeout(IOSession session)
Triggered when the given session as timed out.
|
protected abstract void onConnected(T conn)
protected abstract void onClosed(T conn)
protected abstract void onException(T conn, java.io.IOException ex)
protected abstract void onInputReady(T conn)
protected abstract void onOutputReady(T conn)
protected abstract void onTimeout(T conn)
public void connected(IOSession session)
IOEventDispatchconnected 在接口中 IOEventDispatchsession - the I/O session.public void disconnected(IOSession session)
IOEventDispatchdisconnected 在接口中 IOEventDispatchsession - the I/O session.public void inputReady(IOSession session)
IOEventDispatchinputReady 在接口中 IOEventDispatchsession - the I/O session.public void outputReady(IOSession session)
IOEventDispatchoutputReady 在接口中 IOEventDispatchsession - the I/O session.public void timeout(IOSession session)
IOEventDispatchtimeout 在接口中 IOEventDispatchsession - the I/O session.