Class ConcurrentQueueChannel<E>
java.lang.Object
io.camunda.zeebe.util.sched.channel.ConcurrentQueueChannel<E>
- All Implemented Interfaces:
ConsumableChannel,Iterable<E>,Collection<E>,Queue<E>
Wraps a
Queue as ConsumableChannel.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends E> c) voidclear()booleanbooleancontainsAll(Collection<?> c) element()voidbooleanbooleanisEmpty()iterator()booleanpeek()poll()voidregisterConsumer(ActorCondition onDataAvailable) remove()booleanbooleanremoveAll(Collection<?> c) voidremoveConsumer(ActorCondition onDataAvailable) booleanretainAll(Collection<?> c) intsize()Object[]toArray()<T> T[]toArray(T[] a) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
equals, hashCode, parallelStream, removeIf, spliterator, stream, toArray
-
Constructor Details
-
ConcurrentQueueChannel
-
-
Method Details
-
hasAvailable
public boolean hasAvailable()- Specified by:
hasAvailablein interfaceConsumableChannel
-
registerConsumer
- Specified by:
registerConsumerin interfaceConsumableChannel
-
removeConsumer
- Specified by:
removeConsumerin interfaceConsumableChannel
-
add
-
offer
-
remove
-
poll
-
element
-
peek
-
size
public int size()- Specified by:
sizein interfaceCollection<E>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<E>
-
contains
- Specified by:
containsin interfaceCollection<E>
-
iterator
-
toArray
- Specified by:
toArrayin interfaceCollection<E>
-
toArray
public <T> T[] toArray(T[] a) - Specified by:
toArrayin interfaceCollection<E>
-
remove
- Specified by:
removein interfaceCollection<E>
-
containsAll
- Specified by:
containsAllin interfaceCollection<E>
-
addAll
- Specified by:
addAllin interfaceCollection<E>
-
removeAll
- Specified by:
removeAllin interfaceCollection<E>
-
retainAll
- Specified by:
retainAllin interfaceCollection<E>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<E>
-
forEach
-