T
- the value type emittedpublic static interface Fuseable.QueueSubscription<T>
extends java.util.Queue<T>, org.reactivestreams.Subscription
限定符和类型 | 字段和说明 |
---|---|
static java.lang.String |
NOT_SUPPORTED_MESSAGE |
限定符和类型 | 方法和说明 |
---|---|
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) |
static 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
在接口中 java.util.Collection<T>
default java.util.Iterator<T> iterator()
default java.lang.Object[] toArray()
toArray
在接口中 java.util.Collection<T>
default <T1> T1[] toArray(T1[] a)
toArray
在接口中 java.util.Collection<T>
default boolean remove(@Nullable java.lang.Object o)
remove
在接口中 java.util.Collection<T>
default boolean containsAll(java.util.Collection<?> c)
containsAll
在接口中 java.util.Collection<T>
default boolean addAll(java.util.Collection<? extends T> c)
addAll
在接口中 java.util.Collection<T>
default boolean removeAll(java.util.Collection<?> c)
removeAll
在接口中 java.util.Collection<T>
default boolean retainAll(java.util.Collection<?> c)
retainAll
在接口中 java.util.Collection<T>