Interface RetryableQueue<T>
- Type Parameters:
T- The type of elements held in this queue
- All Superinterfaces:
BlockingQueue<T>, Collection<T>, Iterable<T>, Queue<T>
- All Known Implementing Classes:
TaskQueue
A retryable queue interface that extends
BlockingQueue.-
Method Summary
Methods inherited from interface BlockingQueue
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, takeMethods inherited from interface 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:
trueif the task was added to the queue, otherwisefalse
-
force
Deprecated.Unused. Will be removed in Tomcat 10.1.x.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 queuetimeout- The timeout to use when adding the taskunit- The units in which the timeout is expressed- Returns:
trueif the task was added to the queue, otherwisefalse- Throws:
InterruptedException- If the call is interrupted before the timeout expires
-