|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncQueueReadable
Object, which is able to read data to the ByteBuffer
asynchronously, using queue.
| Method Summary | |
|---|---|
Future<AsyncQueueReadUnit> |
readFromAsyncQueue(ByteBuffer buffer,
AsyncReadCallbackHandler callbackHandler)
Method reads data to the ByteBuffer using async read queue. |
Future<AsyncQueueReadUnit> |
readFromAsyncQueue(ByteBuffer buffer,
AsyncReadCallbackHandler callbackHandler,
AsyncReadCondition condition)
Method reads data to the ByteBuffer using async read queue. |
Future<AsyncQueueReadUnit> |
readFromAsyncQueue(ByteBuffer buffer,
AsyncReadCallbackHandler callbackHandler,
AsyncReadCondition condition,
AsyncQueueDataProcessor readPostProcessor)
Method reads data to the ByteBuffer using async read queue. |
| Method Detail |
|---|
Future<AsyncQueueReadUnit> readFromAsyncQueue(ByteBuffer buffer,
AsyncReadCallbackHandler callbackHandler)
throws IOException
ByteBuffer using async read queue.
First, if read queue is empty - it tries to read to the
ByteBuffer directly (without putting to the queue).
If associated read queue is not empty or after direct reading
ByteBuffer still has remaining place for next read -
ByteBuffer will be added to AsyncQueue.
If an exception occurs, during direct reading - it will be propagated
to the caller directly, otherwise, if the ByteBuffer is
added to a reading queue - exception notification will come via
AsyncReadCallbackHandler.onIOException()
buffer - ByteBuffercallbackHandler - AsyncReadCallbackHandler,
which will get notified, when
ByteBuffer will get full
ByteBuffer was read completely,
false if read operation was put to queue
IOException
Future<AsyncQueueReadUnit> readFromAsyncQueue(ByteBuffer buffer,
AsyncReadCallbackHandler callbackHandler,
AsyncReadCondition condition)
throws IOException
ByteBuffer using async read queue.
First, if read queue is empty - it tries to read to the
ByteBuffer directly (without putting to the queue).
If associated read queue is not empty or after direct reading
ByteBuffer still has remaining place for next read -
ByteBuffer will be added to AsyncQueue.
If an exception occurs, during direct reading - it will be propagated
to the caller directly, otherwise, if the ByteBuffer is
added to a reading queue - exception notification will come via
AsyncReadCallbackHandler.onIOException()
buffer - ByteBuffercallbackHandler - AsyncReadCallbackHandler,
which will get notified, when
ByteBuffer will get fullcondition - AsyncReadCondition, which will be called to
check if read data is complete, and callbackHandler could
be called
ByteBuffer was read completely,
false if read operation was put to queue
IOException
Future<AsyncQueueReadUnit> readFromAsyncQueue(ByteBuffer buffer,
AsyncReadCallbackHandler callbackHandler,
AsyncReadCondition condition,
AsyncQueueDataProcessor readPostProcessor)
throws IOException
ByteBuffer using async read queue.
First, if read queue is empty - it tries to read to the
ByteBuffer directly (without putting to the queue).
If associated read queue is not empty or after direct reading
ByteBuffer still has remaining place for next read -
ByteBuffer will be added to AsyncQueue.
If an exception occurs, during direct reading - it will be propagated
to the caller directly, otherwise, if the ByteBuffer is
added to a reading queue - exception notification will come via
AsyncReadCallbackHandler.onIOException()
buffer - ByteBuffercallbackHandler - AsyncReadCallbackHandler,
which will get notified, when
ByteBuffer will get fullcondition - AsyncReadCondition, which will be called to
check if read data is complete, and callbackHandler could
be calledreadPostProcessor - post processor, to be called to process read data
ByteBuffer was read completely,
false if read operation was put to queue
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||