public final class UnboundedProcessor extends FluxProcessor<ByteBuf,ByteBuf> implements Fuseable.QueueSubscription<ByteBuf>, Fuseable
The implementation keeps the order of signals.
Fuseable.ConditionalSubscriber<T>, Fuseable.QueueSubscription<T>, Fuseable.ScalarCallable<T>, Fuseable.SynchronousSubscription<T>
Scannable.Attr<T>
Disposable.Composite, Disposable.Swap
NOT_SUPPORTED_MESSAGE
OPERATOR_NAME_UNRELATED_WORDS_PATTERN
Constructor and Description |
---|
UnboundedProcessor() |
UnboundedProcessor(Runnable onFinalizedHook) |
Modifier and Type | Method and Description |
---|---|
void |
cancel() |
void |
clear()
Clears all elements from queues and set state to terminate.
|
Context |
currentContext() |
void |
dispose() |
long |
downstreamCount() |
int |
getBufferSize() |
Throwable |
getError() |
int |
getPrefetch() |
boolean |
hasDownstreams() |
Stream<Scannable> |
inners() |
boolean |
isDisposed() |
boolean |
isEmpty() |
boolean |
isTerminated() |
void |
onComplete() |
void |
onError(Throwable t) |
void |
onNext(ByteBuf t) |
void |
onNextPrioritized(ByteBuf t) |
void |
onSubscribe(org.reactivestreams.Subscription s) |
ByteBuf |
poll() |
void |
request(long n) |
int |
requestFusion(int requestedMode) |
Object |
scanUnsafe(Scannable.Attr key) |
int |
size() |
void |
subscribe(CoreSubscriber<? super ByteBuf> actual) |
hasCompleted, hasError, isIdentityProcessor, isSerialized, serialize, serializeAlways, sink, sink, switchOnNext, wrap
all, any, as, blockFirst, blockFirst, blockLast, blockLast, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, bufferTimeout, bufferTimeout, bufferTimeout, bufferTimeout, bufferUntil, bufferUntil, bufferUntilChanged, bufferUntilChanged, bufferUntilChanged, bufferWhen, bufferWhen, bufferWhile, cache, cache, cache, cache, cache, cache, cancelOn, cast, checkpoint, checkpoint, checkpoint, collect, collect, collectList, collectMap, collectMap, collectMap, collectMultimap, collectMultimap, collectMultimap, collectSortedList, collectSortedList, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, combineLatest, concat, concat, concat, concat, concatDelayError, concatDelayError, concatDelayError, concatDelayError, concatMap, concatMap, concatMapDelayError, concatMapDelayError, concatMapDelayError, concatMapIterable, concatMapIterable, concatWith, concatWithValues, contextWrite, contextWrite, count, create, create, defaultIfEmpty, defer, deferContextual, deferWithContext, delayElements, delayElements, delaySequence, delaySequence, delaySubscription, delaySubscription, delaySubscription, delayUntil, dematerialize, distinct, distinct, distinct, distinct, distinctUntilChanged, distinctUntilChanged, distinctUntilChanged, doAfterTerminate, doFinally, doFirst, doOnCancel, doOnComplete, doOnDiscard, doOnEach, doOnError, doOnError, doOnError, doOnNext, doOnRequest, doOnSubscribe, doOnTerminate, elapsed, elapsed, elementAt, elementAt, empty, error, error, error, expand, expand, expandDeep, expandDeep, filter, filterWhen, filterWhen, first, first, firstWithSignal, firstWithSignal, firstWithValue, firstWithValue, flatMap, flatMap, flatMap, flatMap, flatMapDelayError, flatMapIterable, flatMapIterable, flatMapSequential, flatMapSequential, flatMapSequential, flatMapSequentialDelayError, from, fromArray, fromIterable, fromStream, fromStream, generate, generate, generate, groupBy, groupBy, groupBy, groupBy, groupJoin, handle, hasElement, hasElements, hide, ignoreElements, index, index, interval, interval, interval, interval, join, just, just, last, last, limitRate, limitRate, limitRequest, log, log, log, log, log, log, map, mapNotNull, materialize, merge, merge, merge, merge, merge, merge, mergeDelayError, mergeOrdered, mergeOrdered, mergeOrdered, mergeOrderedWith, mergeSequential, mergeSequential, mergeSequential, mergeSequential, mergeSequential, mergeSequential, mergeSequentialDelayError, mergeSequentialDelayError, mergeSequentialDelayError, mergeWith, metrics, name, never, next, ofType, onAssembly, onAssembly, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureBuffer, onBackpressureDrop, onBackpressureDrop, onBackpressureError, onBackpressureLatest, onErrorContinue, onErrorContinue, onErrorContinue, onErrorMap, onErrorMap, onErrorMap, onErrorResume, onErrorResume, onErrorResume, onErrorReturn, onErrorReturn, onErrorReturn, onErrorStop, onTerminateDetach, or, parallel, parallel, parallel, publish, publish, publish, publish, publishNext, publishOn, publishOn, publishOn, push, push, range, reduce, reduce, reduceWith, repeat, repeat, repeat, repeat, repeatWhen, replay, replay, replay, replay, replay, replay, retry, retry, retryWhen, sample, sample, sampleFirst, sampleFirst, sampleTimeout, sampleTimeout, scan, scan, scanWith, share, shareNext, single, single, singleOrEmpty, skip, skip, skip, skipLast, skipUntil, skipUntilOther, skipWhile, sort, sort, startWith, startWith, startWith, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribe, subscribeOn, subscribeOn, subscriberContext, subscriberContext, subscribeWith, switchIfEmpty, switchMap, switchMap, switchOnFirst, switchOnFirst, switchOnNext, switchOnNext, tag, take, take, take, take, takeLast, takeUntil, takeUntilOther, takeWhile, then, then, thenEmpty, thenMany, timed, timed, timeout, timeout, timeout, timeout, timeout, timeout, timeout, timestamp, timestamp, toIterable, toIterable, toIterable, toStream, toStream, toString, transform, transformDeferred, transformDeferredContextual, using, using, usingWhen, usingWhen, window, window, window, window, window, window, window, windowTimeout, windowTimeout, windowUntil, windowUntil, windowUntil, windowUntilChanged, windowUntilChanged, windowUntilChanged, windowWhen, windowWhile, windowWhile, withLatestFrom, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zip, zipWith, zipWith, zipWith, zipWith, zipWithIterable, zipWithIterable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
add, addAll, contains, containsAll, element, iterator, offer, peek, remove, remove, removeAll, retainAll, toArray, toArray
equals, hashCode, parallelStream, removeIf, spliterator, stream
public UnboundedProcessor()
public UnboundedProcessor(Runnable onFinalizedHook)
public int getBufferSize()
getBufferSize
in class FluxProcessor<ByteBuf,ByteBuf>
public Object scanUnsafe(Scannable.Attr key)
scanUnsafe
in interface Scannable
scanUnsafe
in class FluxProcessor<ByteBuf,ByteBuf>
public void onNextPrioritized(ByteBuf t)
public void onNext(ByteBuf t)
onNext
in interface org.reactivestreams.Subscriber<ByteBuf>
public void onError(Throwable t)
onError
in interface org.reactivestreams.Subscriber<ByteBuf>
public void onComplete()
onComplete
in interface org.reactivestreams.Subscriber<ByteBuf>
public void onSubscribe(org.reactivestreams.Subscription s)
onSubscribe
in interface org.reactivestreams.Subscriber<ByteBuf>
onSubscribe
in interface CoreSubscriber<ByteBuf>
public int getPrefetch()
getPrefetch
in class Flux<ByteBuf>
public Context currentContext()
currentContext
in interface CoreSubscriber<ByteBuf>
currentContext
in class FluxProcessor<ByteBuf,ByteBuf>
public void subscribe(CoreSubscriber<? super ByteBuf> actual)
public void request(long n)
request
in interface org.reactivestreams.Subscription
public void cancel()
cancel
in interface org.reactivestreams.Subscription
public void dispose()
dispose
in interface Disposable
dispose
in class FluxProcessor<ByteBuf,ByteBuf>
public int size()
size
in interface Collection<ByteBuf>
public boolean isEmpty()
isEmpty
in interface Collection<ByteBuf>
public void clear()
Fuseable.ASYNC
fusion with the given UnboundedProcessor
and is and indicator that the downstream is done with draining, it has
observed any terminal signal (ON_COMPLETE or ON_ERROR or CANCEL) and will never be interacting
with SingleConsumer queue anymore.clear
in interface Collection<ByteBuf>
public int requestFusion(int requestedMode)
requestFusion
in interface Fuseable.QueueSubscription<ByteBuf>
public boolean isDisposed()
isDisposed
in interface Disposable
public boolean isTerminated()
isTerminated
in class FluxProcessor<ByteBuf,ByteBuf>
@Nullable public Throwable getError()
getError
in class FluxProcessor<ByteBuf,ByteBuf>
public long downstreamCount()
downstreamCount
in class FluxProcessor<ByteBuf,ByteBuf>
public boolean hasDownstreams()
hasDownstreams
in class FluxProcessor<ByteBuf,ByteBuf>