public class ExecutionQueue<R extends ExecutionQueue.Request> extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
ExecutionQueue.ExecutionInteraction<R>
This removes the complexities of managing queued up requests across threads.
|
static interface |
ExecutionQueue.Request
Marker interface for a request.
|
| Constructor and Description |
|---|
ExecutionQueue(ExecutionQueue.ExecutionInteraction<R> executeInteraction) |
| Modifier and Type | Method and Description |
|---|---|
void |
addRequestToQueue(R request)
Call this to add a task to the execution queue.
|
List<R> |
getRequests() |
boolean |
hasRequests() |
boolean |
removeRequestFromQueue(R request) |
public ExecutionQueue(ExecutionQueue.ExecutionInteraction<R> executeInteraction)
public void addRequestToQueue(R request)
request - the requested taskpublic boolean removeRequestFromQueue(R request)
public boolean hasRequests()
Copyright © 2013. All rights reserved