| Modifier and Type | Field and Description |
|---|---|
| private transient volatile ThreadPoolExecutor | |
| private static final long | |
| protected static final StringManager |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | |
| public boolean | offer(Runnable
the element to add o)Overrides java. Implements java. Inserts the specified element at the tail of this queue if it is
possible to do so immediately without exceeding the queue's capacity,
returning |
| public Runnable | poll(long
how long to wait before giving up, in units of
timeout, TimeUnit unita unit)TimeUnit determining how to interpret the
timeout parameterOverrides java. Implements java. Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available. |
| public void | |
| public Runnable | take()
Overrides java. Implements java. Retrieves and removes the head of this queue, waiting if necessary until an element becomes available. |
| parent | back to summary |
|---|---|
| private transient volatile ThreadPoolExecutor parent | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| sm | back to summary |
|---|---|
| protected static final StringManager sm | |
| TaskQueue | back to summary |
|---|---|
| public TaskQueue() | |
| TaskQueue | back to summary |
|---|---|
| public TaskQueue(int capacity) | |
| TaskQueue | back to summary |
|---|---|
| public TaskQueue(Collection<? extends Runnable> c) | |
| force | back to summary |
|---|---|
| public boolean force(Runnable o) Used to add a task to the queue if the task has been rejected by the Executor.
| |
| offer | back to summary |
|---|---|
| public boolean offer(Runnable o) Overrides java. Implements java. Doc from java. Inserts the specified element at the tail of this queue if it is
possible to do so immediately without exceeding the queue's capacity,
returning
| |
| poll | back to summary |
|---|---|
| public Runnable poll(long timeout, TimeUnit unit) throws InterruptedException Overrides java. Implements java. Doc from java. Retrieves and removes the head of this queue, waiting up to the specified wait time if necessary for an element to become available.
| |
| setParent | back to summary |
|---|---|
| public void setParent(ThreadPoolExecutor tp) | |
| take | back to summary |
|---|---|
| public Runnable take() throws InterruptedException Overrides java. Implements java. Doc from java. Retrieves and removes the head of this queue, waiting if necessary until an element becomes available.
| |