public class SearchableOpsQueue extends java.util.concurrent.LinkedBlockingQueue<TucsonOpWrapper>
AsynchOpsHelper
.Constructor and Description |
---|
SearchableOpsQueue() |
Modifier and Type | Method and Description |
---|---|
SearchableOpsQueue |
getMatchingOps(java.lang.Class<? extends AbstractTucsonAction> optype)
Gets all the operations whose type matches the given type
|
void |
removeMatchingOps(java.lang.Class<?> optype)
Removse all the operations whose type matches the given type
|
boolean |
removeOp(AbstractTucsonAction action)
Removes the specific action from the queue
|
boolean |
removeOpById(long id)
Removes the operation identified by the given ID
|
clear, contains, drainTo, drainTo, iterator, offer, offer, peek, poll, poll, put, remainingCapacity, remove, size, spliterator, take, toArray, toArray, toString
containsAll, isEmpty, removeAll, retainAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
public SearchableOpsQueue getMatchingOps(java.lang.Class<? extends AbstractTucsonAction> optype)
optype
- the operation type to look forpublic boolean removeOp(AbstractTucsonAction action)
action
- the TuCSoN action to be removedtrue
or false
depending on whether removal was
successful or notpublic void removeMatchingOps(java.lang.Class<?> optype)
optype
- the operation type whose operations should be removedpublic boolean removeOpById(long id)
id
- the ID of the operation to removetrue
or false
depending on whether removal was
successful or not