Package org.apache.tomcat.util.threads
Interface RetryableQueue<T>
- All Superinterfaces:
BlockingQueue<T>
,Collection<T>
,Iterable<T>
,Queue<T>
- All Known Implementing Classes:
TaskQueue
-
Method Summary
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
Methods inherited from interface java.util.Collection
addAll, clear, containsAll, equals, hashCode, isEmpty, iterator, parallelStream, removeAll, removeIf, retainAll, size, spliterator, stream, toArray, toArray, toArray
-
Method Details
-
force
Used to add a task to the queue if the task has been rejected by the Executor.- Parameters:
o
- The task to add to the queue- Returns:
true
if the task was added to the queue, otherwisefalse
-