RSocketRequester.
| Modifier and Type | Class and Description |
|---|---|
| private class |
| Modifier and Type | Field and Description |
|---|---|
| private final MimeType | |
| private static final Map | |
| private final Mono | |
| private final MimeType | |
| private final RSocket | |
| private final RSocketClient | |
| private final RSocketStrategies |
| Access | Constructor and Description |
|---|---|
| pack-priv | DefaultRSocketRequester(RSocketClient rsocketClient, RSocket rsocket, MimeType dataMimeType, MimeType metadataMimeType, RSocketStrategies strategies)
|
| Modifier and Type | Method and Description |
|---|---|
| private DataBufferFactory | |
| public MimeType | dataMimeType()
Implements org. MimeType selected for the underlying RSocket
at connection time.
|
| private static boolean | |
| public RSocketRequester. | metadata(Object
the metadata value to encode metadata, MimeType the mime type that describes the metadata;
This is required for connection using composite metadata. Otherwise, the
value is encoded according to the mime type for the connection and this
argument may be left as mimeType)null.Implements org. Publisher via ReactiveAdapterRegistry.
|
| public MimeType | metadataMimeType()
Implements org. MimeType selected for the underlying RSocket
at connection time.
|
| public RSocketRequester. | route(String
the route expressing a remote handler mapping route, Object... variables to be expanded into the route template vars)Implements org. |
| public RSocket | rsocket()
Implements org. RSocket if the requester was created with a
"live" RSocket via wrap(RSocket, MimeType, MimeType, RSocketStrategies)
or via one of the (deprecated) connect methods on the
RSocketRequester builder, or otherwise return null.
|
| public RSocketClient | rsocketClient()
Implements org. RSocketClient used to make requests with.
|
| public RSocketStrategies | strategies()
Implements org. RSocketStrategies.
|
| dataMimeType | back to summary |
|---|---|
| private final MimeType dataMimeType | |
| EMPTY_HINTS | back to summary |
|---|---|
| private static final Map<String, Object> EMPTY_HINTS | |
| emptyBufferMono | back to summary |
|---|---|
| private final Mono<DataBuffer> emptyBufferMono | |
| metadataMimeType | back to summary |
|---|---|
| private final MimeType metadataMimeType | |
| rsocket | back to summary |
|---|---|
| private final RSocket rsocket
| |
| rsocketClient | back to summary |
|---|---|
| private final RSocketClient rsocketClient | |
| strategies | back to summary |
|---|---|
| private final RSocketStrategies strategies | |
| DefaultRSocketRequester | back to summary |
|---|---|
| pack-priv DefaultRSocketRequester(RSocketClient rsocketClient, RSocket rsocket, MimeType dataMimeType, MimeType metadataMimeType, RSocketStrategies strategies) | |
| bufferFactory | back to summary |
|---|---|
| private DataBufferFactory bufferFactory() | |
| dataMimeType | back to summary |
|---|---|
| public MimeType dataMimeType() Implements org. Doc from org. Return the data
| |
| isVoid | back to summary |
|---|---|
| private static boolean isVoid(ResolvableType elementType) | |
| metadata | back to summary |
|---|---|
| public RSocketRequester. Implements org. Doc from org. Begin to specify a new request with the given metadata value, which can
be a concrete value or any producer of a single value that can be adapted
to a
| |
| metadataMimeType | back to summary |
|---|---|
| public MimeType metadataMimeType() Implements org. Doc from org. Return the metadata
| |
| route | back to summary |
|---|---|
| public RSocketRequester. Implements org. Doc from org. Begin to specify a new request with the given route to a remote handler. The route can be a template with placeholders, e.g.
If the connection is set to use composite metadata, the route is
encoded as
| |
| rsocket | back to summary |
|---|---|
| public RSocket rsocket() Implements org. Doc from org. Return the underlying | |
| rsocketClient | back to summary |
|---|---|
| public RSocketClient rsocketClient() Implements org. Doc from org. Return the underlying
| |
| strategies | back to summary |
|---|---|
| public RSocketStrategies strategies() Implements org. Doc from org. Return the configured
| |
| Modifier and Type | Field and Description |
|---|---|
| private final MetadataEncoder | |
| private Flux | |
| private Mono |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public RSocketRequester. | data(Object
the Object value for the payload data data)Implements org. |
| public RSocketRequester. | data(Object
the source of payload data value(s). This must be a
producer, Class<?> Publisher or another producer adaptable to a
Publisher via ReactiveAdapterRegistrythe type of values to be produced elementClass)Implements org. data(Object) that also accepts a hint for the
types of values that will be produced.
|
| public RSocketRequester. | data(Object
the source of payload data value(s). This must be a
producer, ParameterizedTypeReference<?> Publisher or another producer adaptable to a
Publisher via ReactiveAdapterRegistrythe type of values to be produced elementTypeRef)Implements org. data(Object, Class) for when the type hint has
to have a generic type.
|
| private <T> DataBuffer | |
| private Mono | firstPayload(Mono<DataBuffer>
the encoded payload data; expected to not be empty! encodedData)Create the 1st request payload with encoded data and metadata. |
| private ReactiveAdapter | |
| private Mono | |
| public RSocketRequester. | metadata(Object
an Object to be encoded with a suitable
metadata, MimeType Encoder, or a
DataBufferthe mime type that describes the metadata mimeType)Implements org. |
| public RSocketRequester. | metadata(Consumer<RSocketRequester.
the configurer to apply configurerImplements org. Consumer.
|
| private DataBuffer | |
| public <T> Flux | retrieveFlux(Class<T>
the expected type for values in the response dataType)Implements org. requestStream or a
requestChannel exchange depending on
whether the request input is single or multi-payload.
|
| public <T> Flux | retrieveFlux(ParameterizedTypeReference<T> dataTypeRef)
Implements org. retrieveFlux(Class) for when the dataType has
to have a generic type.
|
| private <T> Flux | |
| public <T> Mono | retrieveMono(Class<T>
the expected data type for the response dataType)Implements org. requestResponse exchange.
|
| public <T> Mono | retrieveMono(ParameterizedTypeReference<T> dataTypeRef)
Implements org. retrieveMono(Class) for when the dataType has
to have a generic type.
|
| private <T> Mono | |
| public Mono | send()
Implements org. fireAndForget sending the
provided data and metadata.
|
| public Mono | sendMetadata()
Implements org. metadataPush.
|
| metadataEncoder | back to summary |
|---|---|
| private final MetadataEncoder metadataEncoder | |
| payloadFlux | back to summary |
|---|---|
| private Flux<Payload> payloadFlux
| |
| payloadMono | back to summary |
|---|---|
| private Mono<Payload> payloadMono
| |
| DefaultRequestSpec | back to summary |
|---|---|
| public DefaultRequestSpec(String route, Object... vars) | |
| DefaultRequestSpec | back to summary |
|---|---|
| public DefaultRequestSpec(Object metadata, MimeType mimeType) | |
| createPayload | back to summary |
|---|---|
| private void createPayload(Object input, ResolvableType elementType) | |
| data | back to summary |
|---|---|
| public RSocketRequester. Implements org. Doc from org. Provide payload data for the request. This can be one of:
| |
| data | back to summary |
|---|---|
| public RSocketRequester. Implements org. Doc from org. Variant of
| |
| data | back to summary |
|---|---|
| public RSocketRequester. Implements org. Doc from org. Variant of
| |
| encodeData | back to summary |
|---|---|
private <T> DataBuffer encodeData(T value, ResolvableType elementType, Encoder<?> encoder)
| |
| firstPayload | back to summary |
|---|---|
| private Mono Create the 1st request payload with encoded data and metadata.
| |
| getAdapter | back to summary |
|---|---|
private ReactiveAdapter getAdapter(Class<?> aClass)
| |
| getPayloadMono | back to summary |
|---|---|
| private Mono | |
| metadata | back to summary |
|---|---|
| public RSocketRequester. Implements org. Doc from org. Use this to append additional metadata entries when using composite
metadata. An
| |
| metadata | back to summary |
|---|---|
| public RSocketRequester. Implements org. Doc from org. Append additional metadata entries through a
| |
| retainDataAndReleasePayload | back to summary |
|---|---|
| private DataBuffer retainDataAndReleasePayload(Payload payload) | |
| retrieveFlux | back to summary |
|---|---|
| public <T> Flux Implements org. Doc from org. Perform an If the return type is | |
| retrieveFlux | back to summary |
|---|---|
| public <T> Flux Implements org. Doc from org. Variant of
| |
| retrieveFlux | back to summary |
|---|---|
private <T> Flux
| |
| retrieveMono | back to summary |
|---|---|
| public <T> Mono Implements org. Doc from org. Perform a If the return type is Note This method will raise an error if
the request payload is a multivalued | |
| retrieveMono | back to summary |
|---|---|
| public <T> Mono Implements org. Doc from org. Variant of
| |
| retrieveMono | back to summary |
|---|---|
private <T> Mono
| |
| send | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Perform a | |
| sendMetadata | back to summary |
|---|---|
| public Mono Implements org. Doc from org. Perform a
| |