Package org.apache.tomcat.util.threads
Interface RetryableQueue<T>
-
- All Superinterfaces:
java.util.concurrent.BlockingQueue<T>,java.util.Collection<T>,java.lang.Iterable<T>,java.util.Queue<T>
- All Known Implementing Classes:
TaskQueue
public interface RetryableQueue<T> extends java.util.concurrent.BlockingQueue<T>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description booleanforce(java.lang.Runnable o, long timeout, java.util.concurrent.TimeUnit unit)Deprecated.Unused.booleanforce(T o)Used to add a task to the queue if the task has been rejected by the Executor.-
Methods inherited from interface java.util.concurrent.BlockingQueue
add, contains, drainTo, drainTo, offer, offer, poll, put, remainingCapacity, remove, take
-
-
-
-
Method Detail
-
force
boolean force(T o)
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 boolean force(java.lang.Runnable o, long timeout, java.util.concurrent.TimeUnit unit) throws java.lang.InterruptedExceptionDeprecated.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:
java.lang.InterruptedException- If the call is interrupted before the timeout expires
-
-