T
- the value type emittedpublic static interface Fuseable.QueueSubscription<T> extends Queue<T>, Subscription
Modifier and Type | Method and Description |
---|---|
default boolean |
add(T t) |
default boolean |
addAll(Collection<? extends T> c) |
default boolean |
contains(Object o) |
default boolean |
containsAll(Collection<?> c) |
default T |
element() |
default Iterator<T> |
iterator() |
default boolean |
offer(T t) |
default T |
peek() |
default T |
remove() |
default boolean |
remove(Object o) |
default boolean |
removeAll(Collection<?> c) |
int |
requestFusion(int requestedMode)
Request a specific fusion mode from this QueueSubscription.
|
default boolean |
retainAll(Collection<?> c) |
default Object[] |
toArray() |
default <T1> T1[] |
toArray(T1[] a) |
clear, equals, hashCode, isEmpty, parallelStream, removeIf, size, spliterator, stream
cancel, request
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 dowstream and the fusion doesn't happen.
requestedMode
- the mode to requestdefault boolean add(T t)
default boolean contains(Object o)
contains
in interface Collection<T>
default Object[] toArray()
toArray
in interface Collection<T>
default <T1> T1[] toArray(T1[] a)
toArray
in interface Collection<T>
default boolean remove(Object o)
remove
in interface Collection<T>
default boolean containsAll(Collection<?> c)
containsAll
in interface Collection<T>
default boolean addAll(Collection<? extends T> c)
addAll
in interface Collection<T>
default boolean removeAll(Collection<?> c)
removeAll
in interface Collection<T>
default boolean retainAll(Collection<?> c)
retainAll
in interface Collection<T>