类 GrowableArrayBlockingQueue<T>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractQueue<T>
org.apache.pulsar.common.util.collections.GrowableArrayBlockingQueue<T>
- 所有已实现的接口:
Iterable<T>,Collection<T>,BlockingQueue<T>,Queue<T>
This implements a
BlockingQueue backed by an array with no fixed capacity.
When the capacity is reached, data will be moved to a bigger array.
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanvoidclear()intdrainTo(Collection<? super T> c) intdrainTo(Collection<? super T> c, int maxElements) element()voidbooleaniterator()booleanbooleanpeek()poll()voidintremove()booleanintsize()take()voidMake the queue not accept new items. if there are still new data trying to enter the queue, it will be handed by .toList()toString()从类继承的方法 java.util.AbstractQueue
addAll从类继承的方法 java.util.AbstractCollection
contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait从接口继承的方法 java.util.concurrent.BlockingQueue
contains从接口继承的方法 java.util.Collection
addAll, containsAll, equals, hashCode, isEmpty, parallelStream, removeAll, removeIf, retainAll, spliterator, stream, toArray, toArray, toArray
-
构造器详细资料
-
GrowableArrayBlockingQueue
public GrowableArrayBlockingQueue() -
GrowableArrayBlockingQueue
public GrowableArrayBlockingQueue(int initialCapacity)
-
-
方法详细资料
-
remove
-
poll
-
element
-
peek
-
offer
-
put
- 指定者:
put在接口中BlockingQueue<T>
-
add
- 指定者:
add在接口中BlockingQueue<T>- 指定者:
add在接口中Collection<T>- 指定者:
add在接口中Queue<T>- 覆盖:
add在类中AbstractQueue<T>
-
offer
- 指定者:
offer在接口中BlockingQueue<T>
-
take
- 指定者:
take在接口中BlockingQueue<T>- 抛出:
InterruptedException
-
poll
- 指定者:
poll在接口中BlockingQueue<T>- 抛出:
InterruptedException
-
remainingCapacity
public int remainingCapacity()- 指定者:
remainingCapacity在接口中BlockingQueue<T>
-
drainTo
- 指定者:
drainTo在接口中BlockingQueue<T>
-
drainTo
- 指定者:
drainTo在接口中BlockingQueue<T>
-
clear
public void clear()- 指定者:
clear在接口中Collection<T>- 覆盖:
clear在类中AbstractQueue<T>
-
remove
- 指定者:
remove在接口中BlockingQueue<T>- 指定者:
remove在接口中Collection<T>- 覆盖:
remove在类中AbstractCollection<T>
-
size
public int size()- 指定者:
size在接口中Collection<T>- 指定者:
size在类中AbstractCollection<T>
-
iterator
- 指定者:
iterator在接口中Collection<T>- 指定者:
iterator在接口中Iterable<T>- 指定者:
iterator在类中AbstractCollection<T>
-
toList
-
forEach
-
toString
- 覆盖:
toString在类中AbstractCollection<T>
-
terminate
Make the queue not accept new items. if there are still new data trying to enter the queue, it will be handed by . -
isTerminated
public boolean isTerminated()
-