protected static class QueuableCachedThreadPool.ControllableQueue extends LinkedBlockingQueue<Runnable>
| Constructor and Description |
|---|
QueuableCachedThreadPool.ControllableQueue(int capacity) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
force(Runnable o) |
boolean |
force(Runnable o,
long timeout,
TimeUnit unit) |
boolean |
offer(Runnable o) |
void |
setParent(QueuableCachedThreadPool tp) |
clear, contains, drainTo, drainTo, iterator, offer, peek, poll, poll, put, remainingCapacity, remove, size, take, toArray, toArray, toStringadd, addAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddAll, containsAll, equals, hashCode, isEmpty, removeAll, retainAllpublic QueuableCachedThreadPool.ControllableQueue(int capacity)
public void setParent(QueuableCachedThreadPool tp)
public boolean force(Runnable o)
public boolean force(Runnable o, long timeout, TimeUnit unit) throws InterruptedException
InterruptedExceptionpublic boolean offer(Runnable o)
offer in interface BlockingQueue<Runnable>offer in interface Queue<Runnable>offer in class LinkedBlockingQueue<Runnable>Copyright © 2018. All rights reserved.