Top Fields Constructors Methods
io.rsocket.core

pack-priv final Class FireAndForgetResponderSubscriber

extends Object
implements CoreSubscriber<Void>, ResponderFrameHandler
Class Inheritance
All Implemented Interfaces
io.rsocket.core.ResponderFrameHandler, io.rsocket.core.FrameHandler, reactor.core.CoreSubscriber, org.reactivestreams.Subscriber
Imports
io.netty.buffer.ByteBuf, .ByteBufAllocator, .CompositeByteBuf, io.netty.util.ReferenceCountUtil, io.rsocket.Payload, .RSocket, io.rsocket.frame.FrameType, io.rsocket.frame.decoder.PayloadDecoder, io.rsocket.plugins.RequestInterceptor, org.reactivestreams.Subscription, org.slf4j.Logger, .LoggerFactory, reactor.core.CoreSubscriber, reactor.core.publisher.Mono, reactor.util.annotation.Nullable

Field Summary

Modifier and TypeField and Description
pack-priv final ByteBufAllocator
pack-priv CompositeByteBuf
pack-priv final RSocket
pack-priv static final FireAndForgetResponderSubscriber
pack-priv static final Logger
pack-priv final int
pack-priv final PayloadDecoder
pack-priv final RequesterResponderSupport
pack-priv final RequestInterceptor
pack-priv final int

Constructor Summary

AccessConstructor and Description
private
pack-priv
FireAndForgetResponderSubscriber(int streamId, RequesterResponderSupport requesterResponderSupport)

pack-priv
FireAndForgetResponderSubscriber(int streamId, ByteBuf firstFrame, RequesterResponderSupport requesterResponderSupport, RSocket handler)

Method Summary

Modifier and TypeMethod and Description
public final void
public void
handleNext(ByteBuf followingFrame, boolean hasFollows, boolean isLastPayload)

Implements io.rsocket.core.FrameHandler.handleNext.

public void
onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Successful terminal state.
public void
onError(Throwable
the throwable signaled
t
)

Implements org.reactivestreams.Subscriber.onError.

Failed terminal state.
public void
onNext(Void
the element signaled
voidVal
)

Implements org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).
public void
onSubscribe(Subscription
the Subscription that allows requesting data via Subscription#request(long)
s
)

Implements reactor.core.CoreSubscriber.onSubscribe.

Implementors should initialize any state used by onNext(Object) before calling Subscription#request(long).
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

allocatorback to summary
pack-priv final ByteBufAllocator allocator
framesback to summary
pack-priv CompositeByteBuf frames
handlerback to summary
pack-priv final RSocket handler
INSTANCEback to summary
pack-priv static final FireAndForgetResponderSubscriber INSTANCE
loggerback to summary
pack-priv static final Logger logger

Hides io.rsocket.core.ResponderFrameHandler.logger.

maxInboundPayloadSizeback to summary
pack-priv final int maxInboundPayloadSize
payloadDecoderback to summary
pack-priv final PayloadDecoder payloadDecoder
requesterResponderSupportback to summary
pack-priv final RequesterResponderSupport requesterResponderSupport
requestInterceptorback to summary
pack-priv final RequestInterceptor requestInterceptor
Annotations
@Nullable
streamIdback to summary
pack-priv final int streamId

Constructor Detail

FireAndForgetResponderSubscriberback to summary
private FireAndForgetResponderSubscriber()
FireAndForgetResponderSubscriberback to summary
pack-priv FireAndForgetResponderSubscriber(int streamId, RequesterResponderSupport requesterResponderSupport)
FireAndForgetResponderSubscriberback to summary
pack-priv FireAndForgetResponderSubscriber(int streamId, ByteBuf firstFrame, RequesterResponderSupport requesterResponderSupport, RSocket handler)

Method Detail

handleCancelback to summary
public final void handleCancel()

Implements io.rsocket.core.FrameHandler.handleCancel.

Annotations
@Override
handleNextback to summary
public void handleNext(ByteBuf followingFrame, boolean hasFollows, boolean isLastPayload)

Implements io.rsocket.core.FrameHandler.handleNext.

Annotations
@Override
onCompleteback to summary
public void onComplete()

Implements org.reactivestreams.Subscriber.onComplete.

Doc from org.reactivestreams.Subscriber.onComplete.

Successful terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Annotations
@Override
onErrorback to summary
public void onError(Throwable t)

Implements org.reactivestreams.Subscriber.onError.

Doc from org.reactivestreams.Subscriber.onError.

Failed terminal state.

No further events will be sent even if Subscription#request(long) is invoked again.

Parameters
t:Throwable

the throwable signaled

Annotations
@Override
onNextback to summary
public void onNext(Void voidVal)

Implements org.reactivestreams.Subscriber.onNext.

Doc from org.reactivestreams.Subscriber.onNext.

Data notification sent by the Publisher in response to requests to Subscription#request(long).

Parameters
voidVal:Void

the element signaled

Annotations
@Override
onSubscribeback to summary
public void onSubscribe(Subscription s)

Implements reactor.core.CoreSubscriber.onSubscribe.

Doc from reactor.core.CoreSubscriber.onSubscribe.

Implementors should initialize any state used by onNext(Object) before calling Subscription#request(long). Should further onNext related state modification occur, thread-safety will be required.

Note that an invalid request <= 0 will not produce an onError and will simply be ignored or reported through a debug-enabled reactor.util.Logger. Invoked after calling Publisher#subscribe(Subscriber).

No data will start flowing until Subscription#request(long) is invoked.

It is the responsibility of this Subscriber instance to call Subscription#request(long) whenever more data is wanted.

The Publisher will send notifications only in response to Subscription#request(long).

Parameters
s:Subscription

Doc from org.reactivestreams.Subscriber.onSubscribe.

the Subscription that allows requesting data via Subscription#request(long)

Annotations
@Override