|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttoolbus.communication.AbstractConnectionHandler
public abstract class AbstractConnectionHandler
Interface that defines all methods that are required for connection handlers. They need to facilitate in obtaining a reference to read and write multiplexers and supply methods for closing a connection.
Constructor Summary | |
---|---|
AbstractConnectionHandler()
|
Method Summary | |
---|---|
abstract void |
closeConnection(java.nio.channels.SocketChannel socketChannel)
Closes the connection associated with the given socket channel. |
void |
closeDueToDisconnect(java.nio.channels.SocketChannel socketChannel,
SocketIOHandler socketIOHandler)
Closes the connection associated with the given socket channel. |
void |
closeDueToException(java.nio.channels.SocketChannel socketChannel,
SocketIOHandler socketIOHandler)
Closes the connection associated with the given socket channel. |
abstract IReadMultiplexer |
getReadMultiplexer()
Returns a reference to the read multiplexer. |
abstract IWriteMultiplexer |
getWriteMultiplexer()
Returns a reference to the write multiplexer. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractConnectionHandler()
Method Detail |
---|
public abstract IReadMultiplexer getReadMultiplexer()
public abstract IWriteMultiplexer getWriteMultiplexer()
public abstract void closeConnection(java.nio.channels.SocketChannel socketChannel)
socketChannel
- The socket channel, who's associated socket should be closed.public void closeDueToException(java.nio.channels.SocketChannel socketChannel, SocketIOHandler socketIOHandler)
socketChannel
- The socket channel, who's associated socket should be closed.socketIOHandler
- The socket I/O handler associated with the connection that was disconnected.public void closeDueToDisconnect(java.nio.channels.SocketChannel socketChannel, SocketIOHandler socketIOHandler)
socketChannel
- The socket channel, who's associated socket should be closed.socketIOHandler
- The socket I/O handler associated with the connection that was disconnected.
|
The Meta-Environment API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |