public class RSocketProxy extends Object implements RSocket
Disposable.Composite, Disposable.Swap
Constructor and Description |
---|
RSocketProxy(RSocket source) |
Modifier and Type | Method and Description |
---|---|
double |
availability() |
void |
dispose() |
Mono<Void> |
fireAndForget(Payload payload)
Fire and Forget interaction model of
RSocket . |
boolean |
isDisposed() |
Mono<Void> |
metadataPush(Payload payload)
Metadata-Push interaction model of
RSocket . |
Mono<Void> |
onClose()
Returns a
Mono that terminates when the instance is terminated by any reason. |
Flux<Payload> |
requestChannel(org.reactivestreams.Publisher<Payload> payloads)
Request-Channel interaction model of
RSocket . |
Mono<Payload> |
requestResponse(Payload payload)
Request-Response interaction model of
RSocket . |
Flux<Payload> |
requestStream(Payload payload)
Request-Stream interaction model of
RSocket . |
protected final RSocket source
public RSocketProxy(RSocket source)
public Mono<Void> fireAndForget(Payload payload)
RSocket
RSocket
.fireAndForget
in interface RSocket
payload
- Request payload.Publisher
that completes when the passed payload
is successfully
handled, otherwise errors.public Mono<Payload> requestResponse(Payload payload)
RSocket
RSocket
.requestResponse
in interface RSocket
payload
- Request payload.Publisher
containing at most a single Payload
representing the
response.public Flux<Payload> requestStream(Payload payload)
RSocket
RSocket
.requestStream
in interface RSocket
payload
- Request payload.Publisher
containing the stream of Payload
s representing the response.public Flux<Payload> requestChannel(org.reactivestreams.Publisher<Payload> payloads)
RSocket
RSocket
.requestChannel
in interface RSocket
payloads
- Stream of request payloads.public Mono<Void> metadataPush(Payload payload)
RSocket
RSocket
.metadataPush
in interface RSocket
payload
- Request payloads.Publisher
that completes when the passed payload
is successfully
handled, otherwise errors.public double availability()
availability
in interface Availability
availability
in interface RSocket
public void dispose()
dispose
in interface RSocket
dispose
in interface Disposable
public boolean isDisposed()
isDisposed
in interface RSocket
isDisposed
in interface Disposable
public Mono<Void> onClose()
Closeable
Mono
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.