T - the value type emittedpublic static interface Fuseable.QueueSubscription<T> extends java.util.Queue<T>, Subscription
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NOT_SUPPORTED_MESSAGE |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
add(T t) |
default boolean |
addAll(java.util.Collection<? extends T> c) |
default boolean |
contains(java.lang.Object o) |
default boolean |
containsAll(java.util.Collection<?> c) |
default T |
element() |
default java.util.Iterator<T> |
iterator() |
default boolean |
offer(T t) |
default T |
peek() |
default T |
remove() |
default boolean |
remove(java.lang.Object o) |
default boolean |
removeAll(java.util.Collection<?> c) |
int |
requestFusion(int requestedMode)
Request a specific fusion mode from this QueueSubscription.
|
default boolean |
retainAll(java.util.Collection<?> c) |
default java.lang.Object[] |
toArray() |
default <T1> T1[] |
toArray(T1[] a) |
clear, equals, hashCode, isEmpty, parallelStream, removeIf, size, spliterator, streamcancel, requeststatic final java.lang.String NOT_SUPPORTED_MESSAGE
int requestFusion(int requestedMode)
One should request either SYNC, ASYNC or ANY modes (never NONE) and the implementor should return NONE, SYNC or ASYNC (never ANY).
For example, if a source supports only ASYNC fusion but the intermediate operator supports only SYNC fuseable sources, the operator may request SYNC fusion and the source can reject it via NONE, thus the operator can return NONE as well to downstream and the fusion doesn't happen.
requestedMode - the mode requested by the intermediate operatordefault boolean contains(@Nullable java.lang.Object o)
contains in interface java.util.Collection<T>default java.util.Iterator<T> iterator()
default java.lang.Object[] toArray()
toArray in interface java.util.Collection<T>default <T1> T1[] toArray(T1[] a)
toArray in interface java.util.Collection<T>default boolean remove(@Nullable java.lang.Object o)
remove in interface java.util.Collection<T>default boolean containsAll(java.util.Collection<?> c)
containsAll in interface java.util.Collection<T>default boolean addAll(java.util.Collection<? extends T> c)
addAll in interface java.util.Collection<T>default boolean removeAll(java.util.Collection<?> c)
removeAll in interface java.util.Collection<T>default boolean retainAll(java.util.Collection<?> c)
retainAll in interface java.util.Collection<T>