|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AsyncQueue
Common interface for AsyncQueue processors.
| Nested Class Summary | |
|---|---|
static class |
AsyncQueue.AsyncResult
|
| Field Summary | |
|---|---|
static java.lang.String |
EXPECTING_MORE_OPTION
|
| Method Summary | |
|---|---|
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. |
| Field Detail |
|---|
static final java.lang.String EXPECTING_MORE_OPTION
| Method Detail |
|---|
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 - Connectionvoid close()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||