public interface AsyncQueue
AsyncQueue processors.| Modifier and Type | Interface and Description |
|---|---|
static class |
AsyncQueue.AsyncResult |
| Modifier and Type | Field and Description |
|---|---|
static String |
EXPECTING_MORE_OPTION |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close AsyncQueueProcessor and release associated resources
|
boolean |
isReady(Connection connection)
Checks whether there is ready data in
AsyncQueue,
associated with the Connection. |
void |
onClose(Connection connection)
Callback method, which is called, when
Connection has been closed,
to let processor release a connection associated resources. |
AsyncQueue.AsyncResult |
processAsync(Context context)
Callback method, which is called async.
|
static final String EXPECTING_MORE_OPTION
boolean isReady(Connection connection)
AsyncQueue,
associated with the Connection.connection - ConnectionAsyncQueue.AsyncResult processAsync(Context context)
AsyncQueue, which are associated with the given
Connectioncontext - ContextAsyncQueue.AsyncResult, depending on async queue status.void onClose(Connection connection)
Connection has been closed,
to let processor release a connection associated resources.connection - Connectionvoid close()
Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.