public interface QueueAccess
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasQueuedActionWithAttribute(int attr)
Look in the immediate queue for any actions of a specific attribute
|
RenewingAction<? extends AsyncAction> |
lookupRenewingAction(String name)
Look up a renewing action
|
void |
put(AsyncAction action)
Put an action on the immediate queue -to be executed when the queue
reaches it.
|
boolean |
remove(AsyncAction action)
Remove an action from the queues.
|
boolean |
removeRenewingAction(String name)
Remove a renewing action
|
void |
renewing(String name,
RenewingAction<? extends AsyncAction> renewingAction)
Add a named renewing action
|
void |
schedule(AsyncAction action)
Put a delayed action: this will only be added to the main queue
after its action time has been reached
|
void put(AsyncAction action)
action - action to queuevoid schedule(AsyncAction action)
action - action to queueboolean remove(AsyncAction action)
action - action to removevoid renewing(String name, RenewingAction<? extends AsyncAction> renewingAction)
name - namerenewingAction - wrapped actionRenewingAction<? extends AsyncAction> lookupRenewingAction(String name)
name - name of the actionboolean removeRenewingAction(String name)
name - action name name of the actionboolean hasQueuedActionWithAttribute(int attr)
Copyright © 2014–2015 The Apache Software Foundation. All rights reserved.