Top Fields Constructors Methods
io.rsocket.core

pack-priv final Class MetadataPushRequesterMono

extends Mono<Void>
implements Scannable
Class Inheritance
All Implemented Interfaces
reactor.core.Scannable
Static Imports
io.rsocket.core.PayloadValidationUtils.INVALID_PAYLOAD_ERROR_MESSAGE, .PayloadValidationUtils.isValidMetadata, io.rsocket.core.StateUtils.*

Field Summary

Modifier and TypeField and Description
pack-priv final ByteBufAllocator
pack-priv final DuplexConnection
pack-priv final int
pack-priv final Payload
pack-priv volatile long
pack-priv static final AtomicLongFieldUpdater<MetadataPushRequesterMono>

Constructor Summary

AccessConstructor and Description
pack-priv
MetadataPushRequesterMono(Payload payload, RequesterResponderSupport requesterResponderSupport)

Method Summary

Modifier and TypeMethod and Description
public Void
block(Duration
maximum time period to wait for before raising a RuntimeException
m
)

Overrides reactor.core.publisher.Mono.block.

Subscribe to this Mono and block until a next signal is received or a timeout expires.
public Void
block()

Overrides reactor.core.publisher.Mono.block.

This method is deliberately non-blocking regardless it is named as `.block`.
public Object
scanUnsafe(Scannable.Attr<T>
a Attr to resolve for the component.
key
)

Implements reactor.core.Scannable.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place.
public String
stepName()

Overrides default reactor.core.Scannable.stepName.

Return a meaningful String representation of this Scannable in its chain of parents() and actuals().
public void
subscribe(CoreSubscriber<? super Void>
the Subscriber interested into the published sequence
actual
)

Implements abstract reactor.core.publisher.Mono.subscribe.

Implements reactor.core.CorePublisher.subscribe.

An internal Publisher#subscribe(Subscriber) that will bypass Hooks#onLastOperator(Function) pointcut.
Inherited from reactor.core.publisher.Mono:
andasblockOptionalblockOptionalcachecachecachecachecachecacheInvalidateIfcacheInvalidateWhencacheInvalidateWhencancelOncastcheckpointcheckpointcheckpointconcatWithcontextCapturecontextWritecontextWritecreatedefaultIfEmptydeferdeferContextualdelaydelaydelayElementdelayElementdelaySubscriptiondelaySubscriptiondelaySubscriptiondelayUntildematerializedoAfterTerminatedoFinallydoFirstdoOnCanceldoOnDiscarddoOnEachdoOnErrordoOnErrordoOnErrordoOnNextdoOnRequestdoOnSubscribedoOnSuccessdoOnTerminateelapsedelapsedemptyerrorerrorexpandexpandexpandDeepexpandDeepfilterfilterWhenfirstfirstfirstWithSignalfirstWithSignalfirstWithValuefirstWithValueflatMapflatMapIterableflatMapManyflatMapManyfluxfromfromCallablefromCompletionStagefromCompletionStagefromDirectfromFuturefromFuturefromFuturefromFuturefromRunnablefromSupplierhandlehasElementhideignoreElementignoreElementsjustjustOrEmptyjustOrEmptyloglogloglogloglogmapmapNotNullmaterializemergeWithmetricsnameneverofTypeonAssemblyonErrorCompleteonErrorCompleteonErrorCompleteonErrorContinueonErrorContinueonErrorContinueonErrorMaponErrorMaponErrorMaponErrorResumeonErrorResumeonErrorResumeonErrorReturnonErrorReturnonErrorReturnonErrorStoponTerminateDetachorpublishpublishOnrepeatrepeatrepeatrepeatrepeatWhenrepeatWhenEmptyrepeatWhenEmptyretryretryretryWhensequenceEqualsequenceEqualsequenceEqualsharesinglesingleOptionalsubscribesubscribesubscribesubscribesubscribesubscribesubscribesubscribeOnsubscribeWithswitchIfEmptytagtaketaketakeUntilOthertaptaptapthenthenthenEmptythenManythenReturntimedtimedtimeouttimeouttimeouttimeouttimeouttimeouttimestamptimestamptoFuturetoStringtransformtransformDeferredtransformDeferredContextualusingusingusingWhenusingWhenwhenwhenwhenDelayErrorwhenDelayErrorzipzipzipzipzipzipzipzipzipzipzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipDelayErrorzipWhenzipWhenzipWithzipWith

Field Detail

allocatorback to summary
pack-priv final ByteBufAllocator allocator
connectionback to summary
pack-priv final DuplexConnection connection
maxFrameLengthback to summary
pack-priv final int maxFrameLength
payloadback to summary
pack-priv final Payload payload
stateback to summary
pack-priv volatile long state
STATEback to summary
pack-priv static final AtomicLongFieldUpdater<MetadataPushRequesterMono> STATE

Constructor Detail

MetadataPushRequesterMonoback to summary
pack-priv MetadataPushRequesterMono(Payload payload, RequesterResponderSupport requesterResponderSupport)

Method Detail

blockback to summary
public Void block(Duration m)

Overrides reactor.core.publisher.Mono.block.

Doc from reactor.core.publisher.Mono.block.

Subscribe to this Mono and block until a next signal is received or a timeout expires. Returns that value, or null if the Mono completes empty. In case the Mono errors, the original exception is thrown (wrapped in a RuntimeException if it was a checked exception). If the provided timeout expires, a RuntimeException is thrown.

Note that each block() will trigger a new subscription: in other words, the result might miss signal from hot publishers.

Parameters
m:Duration

maximum time period to wait for before raising a RuntimeException

Returns:Void

T the result

Annotations
@Override
@Nullable
blockback to summary
public Void block()

Overrides reactor.core.publisher.Mono.block.

This method is deliberately non-blocking regardless it is named as `.block`. The main intent to keep this method along with the subscribe() is to eliminate redundancy which comes with a default block method implementation.

Returns:Void

Doc from reactor.core.publisher.Mono.block.

T the result

Annotations
@Override
@Nullable
scanUnsafeback to summary
public Object scanUnsafe(Scannable.Attr<T> key)

Implements reactor.core.Scannable.scanUnsafe.

Doc from reactor.core.Scannable.scanUnsafe.

This method is used internally by components to define their key-value mappings in a single place. Although it is ignoring the generic type of the Attr key, implementors should take care to return values of the correct type, and return null if no specific value is available.

For public consumption of attributes, prefer using scan(Attr), which will return a typed value and fall back to the key's default if the component didn't define any mapping.

Parameters
key:Scannable.Attr<T>

a Attr to resolve for the component.

Returns:Object

the value associated to the key for that specific component, or null if none.

Annotations
@Override
stepNameback to summary
public String stepName()

Overrides default reactor.core.Scannable.stepName.

Doc from reactor.core.Scannable.stepName.

Return a meaningful String representation of this Scannable in its chain of parents() and actuals().

Annotations
@Override
@NonNull
subscribeback to summary
public void subscribe(CoreSubscriber<? super Void> actual)

Implements abstract reactor.core.publisher.Mono.subscribe.

Implements reactor.core.CorePublisher.subscribe.

Doc from reactor.core.publisher.Mono.subscribe.

An internal Publisher#subscribe(Subscriber) that will bypass Hooks#onLastOperator(Function) pointcut.

In addition to behave as expected by Publisher#subscribe(Subscriber) in a controlled manner, it supports direct subscribe-time Context passing.

Parameters
actual:CoreSubscriber<? super Void>

the Subscriber interested into the published sequence

Annotations
@Override