|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionHandler
Handler for a Connection.
Required to be implemented by the handler provider.
| Method Summary | |
|---|---|
void |
handleIdleConnection(IdleContext context)
Handles a Connection being idled. |
void |
handleRead(ReadContext context)
Handles a read from the SocketChannel. |
void |
handleWrite(WriteContext context)
Handles a potential write to the SocketChannel. |
| Method Detail |
|---|
void handleRead(ReadContext context)
throws IOException
SocketChannel.
context - ReadContext.
IOException - If fails to obtain data from the ReadContext.
void handleWrite(WriteContext context)
throws IOException
SocketChannel.
context - WriteContext.
IOException - If fails to handle write.
void handleIdleConnection(IdleContext context)
throws IOException
Connection being idled.
context - IdleContext.
IOException - If fails to handle idle Connection. Possibly from
attempting to close it.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||