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
- Connection
AsyncQueue.AsyncResult processAsync(Context context)
AsyncQueue
, which are associated with the given
Connection
context
- Context
AsyncQueue.AsyncResult
, depending on async queue status.void onClose(Connection connection)
Connection
has been closed,
to let processor release a connection associated resources.connection
- Connection
void close()
Copyright © 2015 Oracle Corporation. All rights reserved.