public final class AdaptiveConsumerAction<T> extends Action<T,java.lang.Void>
capacity, downstreamSubscription, NO_CAPACITY, RESERVED_SLOTS, upstreamSubscription| Constructor and Description |
|---|
AdaptiveConsumerAction(reactor.core.Dispatcher dispatcher,
long initCapacity,
reactor.fn.Consumer<? super T> consumer,
reactor.fn.Function<Stream<java.lang.Long>,? extends org.reactivestreams.Publisher<? extends java.lang.Long>> requestMapper) |
| Modifier and Type | Method and Description |
|---|---|
protected PushSubscription<java.lang.Void> |
createSubscription(org.reactivestreams.Subscriber<? super java.lang.Void> subscriber,
boolean reactivePull) |
protected void |
doError(java.lang.Throwable ev) |
protected void |
doNext(T ev) |
protected void |
doOnSubscribe(org.reactivestreams.Subscription subscription) |
protected void |
doShutdown() |
reactor.core.Dispatcher |
getDispatcher()
Get the dispatcher used to execute signals on this Stream instance.
|
boolean |
isReactivePull(reactor.core.Dispatcher dispatcher,
long producerCapacity) |
void |
requestMore(long n)
Request the next n elements from the source
|
java.lang.String |
toString() |
accept, addSubscription, broadcastComplete, broadcastError, broadcastNext, cancel, cancelSubscription, capacity, checkRequest, combine, control, createSubscription, createTrackingSubscription, debug, doComplete, doStart, downstreamSubscription, evaluateCapacity, findOldestUpstream, getCapacity, getSubscription, isPublishing, onComplete, onError, onNext, onOverflowBuffer, onSubscribe, recycle, requestAll, requestUpstream, subscribe, subscribeWithSubscription, toBroadcastCompleteConsumer, toBroadcastErrorConsumer, toBroadcastNextConsumeradaptiveConsume, adaptiveConsumeOn, after, batchConsume, batchConsumeOn, broadcast, broadcastOn, broadcastTo, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, buffer, cache, cast, concatMap, concatWith, consume, consume, consume, consume, consume, consumeLater, consumeOn, consumeOn, consumeOn, count, count, decode, defaultIfEmpty, dematerialize, dispatchOn, dispatchOn, dispatchOn, distinct, distinct, distinctUntilChanged, distinctUntilChanged, elapsed, elementAt, elementAtOrDefault, encode, env, exists, fanIn, filter, filter, finallyDo, flatMap, getEnvironment, getTimer, groupBy, ignoreError, ignoreError, join, joinWith, keepAlive, last, lift, log, log, map, materialize, merge, mergeWith, nest, next, observe, observeCancel, observeComplete, observeError, observeStart, observeSubscribe, onErrorResumeNext, onErrorResumeNext, onErrorReturn, onErrorReturn, onOverflowBuffer, onOverflowDrop, partition, partition, process, recover, reduce, reduce, repeat, repeat, repeatWhen, requestWhen, retry, retry, retry, retry, retryWhen, sample, sample, sample, sample, sample, sample, sampleFirst, sampleFirst, sampleFirst, sampleFirst, sampleFirst, sampleFirst, scan, scan, skip, skip, skip, skipWhile, skipWhile, sort, sort, sort, sort, split, split, startWith, startWith, startWith, subscribe, subscribeOn, subscribeOn, subscribeOn, switchMap, take, take, take, takeWhile, tap, throttle, throttle, timeout, timeout, timeout, timeout, timestamp, toBlockingQueue, toBlockingQueue, toList, toList, unbounded, when, window, window, window, window, window, window, window, window, window, window, window, zip, zipWith, zipWithpublic void requestMore(long n)
ControlrequestMore in interface ControlrequestMore in class Action<T,java.lang.Void>n - the number of elements to requestprotected void doOnSubscribe(org.reactivestreams.Subscription subscription)
doOnSubscribe in class Action<T,java.lang.Void>protected void doError(java.lang.Throwable ev)
protected void doShutdown()
doShutdown in class Action<T,java.lang.Void>protected PushSubscription<java.lang.Void> createSubscription(org.reactivestreams.Subscriber<? super java.lang.Void> subscriber, boolean reactivePull)
createSubscription in class Action<T,java.lang.Void>public boolean isReactivePull(reactor.core.Dispatcher dispatcher,
long producerCapacity)
isReactivePull in interface reactor.core.support.NonBlockingisReactivePull in class Stream<java.lang.Void>public reactor.core.Dispatcher getDispatcher()
StreamgetDispatcher in class Stream<java.lang.Void>