|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsyncWriteCallbackHandler
Callback handler interface, used by AsyncQueueWriter
to notify
custom code either about completion of specific ByteBuffer
writing
or about IO problem, which occured when writing ByteBuffer
Method Summary | |
---|---|
void |
onIOException(IOException ioException,
SelectionKey key,
ByteBuffer buffer,
Queue<AsyncWriteQueueRecord> remainingQueue)
Method will be called by AsyncQueueWriter , if
IO error occured when writing ByteBuffer to the
SelectableChannel , associated with SelectionKey |
void |
onWriteCompleted(SelectionKey key,
ByteBuffer buffer)
Method will be called by AsyncQueueWriter , if
whole ByteBuffer data was written to the
SelectableChannel , associated with SelectionKey |
Method Detail |
---|
void onWriteCompleted(SelectionKey key, ByteBuffer buffer)
AsyncQueueWriter
, if
whole ByteBuffer
data was written to the
SelectableChannel
, associated with SelectionKey
key
- SelectionKey
, associated with output
SelectableChannel
buffer
- ByteBuffer
, which data was successfully writtenvoid onIOException(IOException ioException, SelectionKey key, ByteBuffer buffer, Queue<AsyncWriteQueueRecord> remainingQueue)
AsyncQueueWriter
, if
IO error occured when writing ByteBuffer
to the
SelectableChannel
, associated with SelectionKey
ioException
- occured IOException
key
- SelectionKey
, associated with output
SelectableChannel
buffer
- ByteBuffer
, which data was failed to be writtenremainingQueue
- queue of write records which were not written yet at the
moment, when exception occured
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |