public interface ManagedConnection
Connection
.Modifier and Type | Method and Description |
---|---|
ConnectionHandler |
getConnectionHandler()
Obtains the
ConnectionHandler . |
SelectionKey |
getSelectionKey()
Obtains the
SelectionKey for the Connection . |
SocketChannel |
getSocketChannel()
Obtains the
SocketChannel for the Connection . |
boolean |
processWriteQueue()
Undertakes the queued writes and possible
Connection close. |
void |
terminate()
Terminates this
Connection immediately. |
SelectionKey getSelectionKey()
SelectionKey
for the Connection
.SelectionKey
for the Connection
.SocketChannel getSocketChannel()
SocketChannel
for the Connection
.SocketChannel
for the Connection
.ConnectionHandler getConnectionHandler()
ConnectionHandler
.ConnectionHandler
.boolean processWriteQueue() throws IOException
Connection
close.true
if all data written. false
indicating not able to write all data, requiring waiting for
client to consume data (clear space in socket buffer).IOException
- If fails to process the queued writes.void terminate() throws IOException
Connection
immediately.IOException
- If fails to terminate the Connection
.Copyright © 2005–2016. All rights reserved.