类 ChannelSendOperator.WriteCompletionBarrier
java.lang.Object
cn.taketoday.http.server.reactive.ChannelSendOperator.WriteCompletionBarrier
- 所有已实现的接口:
org.reactivestreams.Subscriber<Void>,org.reactivestreams.Subscription,reactor.core.CoreSubscriber<Void>
- 封闭类:
- ChannelSendOperator<T>
private class ChannelSendOperator.WriteCompletionBarrier
extends Object
implements reactor.core.CoreSubscriber<Void>, org.reactivestreams.Subscription
We need an extra barrier between the WriteBarrier itself and the actual
completion subscriber.
The completionSubscriber is subscribed initially to the WriteBarrier. Later after the first signal is received, we need one more subscriber instance (per spec can only subscribe once) to subscribe to the write function and switch to delegating completion signals from it.
-
字段概要
字段修饰符和类型字段说明private final reactor.core.CoreSubscriber<? super Void>private org.reactivestreams.Subscriptionprivate final ChannelSendOperator<T>.WriteBarrier -
构造器概要
构造器构造器说明WriteCompletionBarrier(reactor.core.CoreSubscriber<? super Void> subscriber, ChannelSendOperator<T>.WriteBarrier writeBarrier) -
方法概要
修饰符和类型方法说明voidcancel()voidconnect()Connect the underlying completion subscriber to this barrier in order to track cancel signals and pass them on to the write barrier.reactor.util.context.ContextvoidvoidvoidvoidonSubscribe(org.reactivestreams.Subscription subscription) voidrequest(long n)
-
字段详细资料
-
completionSubscriber
-
writeBarrier
-
subscription
@Nullable private org.reactivestreams.Subscription subscription
-
-
构造器详细资料
-
WriteCompletionBarrier
public WriteCompletionBarrier(reactor.core.CoreSubscriber<? super Void> subscriber, ChannelSendOperator<T>.WriteBarrier writeBarrier)
-
-
方法详细资料
-
connect
public void connect()Connect the underlying completion subscriber to this barrier in order to track cancel signals and pass them on to the write barrier. -
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription subscription) -
onNext
- 指定者:
onNext在接口中org.reactivestreams.Subscriber<Void>
-
onError
- 指定者:
onError在接口中org.reactivestreams.Subscriber<Void>
-
onComplete
public void onComplete()- 指定者:
onComplete在接口中org.reactivestreams.Subscriber<Void>
-
currentContext
public reactor.util.context.Context currentContext()- 指定者:
currentContext在接口中reactor.core.CoreSubscriber<Void>
-
request
public void request(long n) - 指定者:
request在接口中org.reactivestreams.Subscription
-
cancel
public void cancel()- 指定者:
cancel在接口中org.reactivestreams.Subscription
-