|
||||||||||
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 |
onException(Exception exception,
SelectionKey key,
ByteBuffer buffer,
Queue<AsyncQueueWriteUnit> remainingQueue)
Method will be called by AsyncQueueWriter , if
error occured when writing ByteBuffer to the
SelectableChannel , associated with SelectionKey |
void |
onWriteCompleted(SelectionKey key,
AsyncQueueWriteUnit writtenRecord)
Method will be called by AsyncQueueWriter , if
whole ByteBuffer data was written to the
SelectableChannel , associated with SelectionKey |
Method Detail |
---|
void onWriteCompleted(SelectionKey key, AsyncQueueWriteUnit writtenRecord)
AsyncQueueWriter
, if
whole ByteBuffer
data was written to the
SelectableChannel
, associated with SelectionKey
key
- SelectionKey
, associated with output
SelectableChannel
writtenRecord
- AsyncWriteQueueRecord
, which was successfuly
writtenvoid onException(Exception exception, SelectionKey key, ByteBuffer buffer, Queue<AsyncQueueWriteUnit> remainingQueue)
AsyncQueueWriter
, if
error occured when writing ByteBuffer
to the
SelectableChannel
, associated with SelectionKey
exception
- occurred Exception
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 |