@InterfaceAudience.Private public class StealJobQueue<T> extends PriorityBlockingQueue<T>
| 构造器和说明 |
|---|
StealJobQueue(Comparator<? super T> comparator) |
StealJobQueue(int initCapacity,
int stealFromQueueInitCapacity,
Comparator<? super T> comparator) |
| 限定符和类型 | 方法和说明 |
|---|---|
BlockingQueue<T> |
getStealFromQueue()
Get a queue whose job might be stolen by the consumer of this original queue
|
boolean |
offer(T t) |
T |
poll(long timeout,
TimeUnit unit) |
T |
take() |
add, clear, comparator, contains, drainTo, drainTo, iterator, offer, peek, poll, put, remainingCapacity, remove, size, spliterator, toArray, toArray, toStringaddAll, element, removecontainsAll, isEmpty, removeAll, retainAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, streampublic StealJobQueue(Comparator<? super T> comparator)
public StealJobQueue(int initCapacity,
int stealFromQueueInitCapacity,
Comparator<? super T> comparator)
public BlockingQueue<T> getStealFromQueue()
public boolean offer(T t)
offer 在接口中 BlockingQueue<T>offer 在接口中 Queue<T>offer 在类中 PriorityBlockingQueue<T>public T take() throws InterruptedException
take 在接口中 BlockingQueue<T>take 在类中 PriorityBlockingQueue<T>InterruptedExceptionpublic T poll(long timeout, TimeUnit unit) throws InterruptedException
poll 在接口中 BlockingQueue<T>poll 在类中 PriorityBlockingQueue<T>InterruptedExceptionCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.