protected static class QueuableCachedPool.ControllableQueue extends LinkedBlockingQueue<Runnable>
| 构造器和说明 |
|---|
ControllableQueue(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
force(Runnable o) |
boolean |
force(Runnable o,
long timeout,
TimeUnit unit) |
boolean |
offer(Runnable o) |
void |
setParent(QueuableCachedPool tp) |
clear, contains, drainTo, drainTo, iterator, offer, peek, poll, poll, put, remainingCapacity, remove, size, spliterator, take, toArray, toArray, toStringadd, addAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic void setParent(QueuableCachedPool tp)
public boolean force(Runnable o)
public boolean force(Runnable o, long timeout, TimeUnit unit) throws InterruptedException
public boolean offer(Runnable o)
offer 在接口中 BlockingQueue<Runnable>offer 在接口中 Queue<Runnable>offer 在类中 LinkedBlockingQueue<Runnable>Copyright © 2019. All rights reserved.