public interface RSocket extends Availability, Closeable
Disposable.Composite, Disposable.Swap| Modifier and Type | Method and Description |
|---|---|
default double |
availability() |
default void |
dispose() |
default Mono<Void> |
fireAndForget(Payload payload)
Fire and Forget interaction model of
RSocket. |
default boolean |
isDisposed() |
default Mono<Void> |
metadataPush(Payload payload)
Metadata-Push interaction model of
RSocket. |
default Mono<Void> |
onClose()
Returns a
Mono that terminates when the instance is terminated by any reason. |
default Flux<Payload> |
requestChannel(org.reactivestreams.Publisher<Payload> payloads)
Request-Channel interaction model of
RSocket. |
default Mono<Payload> |
requestResponse(Payload payload)
Request-Response interaction model of
RSocket. |
default Flux<Payload> |
requestStream(Payload payload)
Request-Stream interaction model of
RSocket. |
default Mono<Void> fireAndForget(Payload payload)
RSocket.payload - Request payload.Publisher that completes when the passed payload is successfully
handled, otherwise errors.default Mono<Payload> requestResponse(Payload payload)
RSocket.payload - Request payload.Publisher containing at most a single Payload representing the
response.default Flux<Payload> requestStream(Payload payload)
RSocket.payload - Request payload.Publisher containing the stream of Payloads representing the response.default Flux<Payload> requestChannel(org.reactivestreams.Publisher<Payload> payloads)
RSocket.payloads - Stream of request payloads.default Mono<Void> metadataPush(Payload payload)
RSocket.payload - Request payloads.Publisher that completes when the passed payload is successfully
handled, otherwise errors.default double availability()
availability in interface Availabilitydefault void dispose()
dispose in interface Disposabledefault boolean isDisposed()
isDisposed in interface Disposabledefault Mono<Void> onClose()
CloseableMono that terminates when the instance is terminated by any reason. Note, in
case of error termination, the cause of error will be propagated as an error signal through
Subscriber.onError(Throwable). Otherwise, Subscriber.onComplete() will be called.