|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ConnectionHandler
Interface implemented by objects implementing a connection handler. A
connection handler is passed to Transport.accept.
When a new connection is received by the transport,
newConnection is invoked with the new I/O channel
for that connection.
| Method Summary | |
|---|---|
void |
newConnection(AsynchronousByteChannel channel)
Notify the handler that a new connection has been initiated. |
void |
shutdown()
Notify the handler that the transport encountered an unrecoverable error and has shutdown. |
| Method Detail |
|---|
void newConnection(AsynchronousByteChannel channel)
throws Exception
channel.
channel - on which the new connection can communicate.
Exception - if the handler rejects the connection.void shutdown()
|
RedDwarf, Version 0.10.1 2010-03-14 10:56:12 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||