public class TaskQueue<R extends Runnable> extends LinkedBlockingQueue<Runnable>
| 构造器和说明 |
|---|
TaskQueue(int capacity) |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
offer(Runnable runnable) |
boolean |
retryOffer(Runnable o,
long timeout,
TimeUnit unit) |
void |
setExecutor(FastThreadPoolExecutor exec) |
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 setExecutor(FastThreadPoolExecutor exec)
public boolean offer(Runnable runnable)
offer 在接口中 BlockingQueue<Runnable>offer 在接口中 Queue<Runnable>offer 在类中 LinkedBlockingQueue<Runnable>public boolean retryOffer(Runnable o, long timeout, TimeUnit unit) throws InterruptedException
Copyright © 2022. All rights reserved.