public static interface RSocketRequester.RequestSpec
| Modifier and Type | Method and Description |
|---|---|
RSocketRequester.ResponseSpec |
data(Object data)
Provide payload data for the request.
|
RSocketRequester.ResponseSpec |
data(Object producer,
Class<?> elementClass)
Variant of
data(Object) that also accepts a hint for the
types of values that will be produced. |
RSocketRequester.ResponseSpec |
data(Object producer,
org.springframework.core.ParameterizedTypeReference<?> elementTypeRef)
Variant of
data(Object, Class) for when the type hint has
to have a generic type. |
RSocketRequester.RequestSpec |
metadata(Object metadata,
org.springframework.util.MimeType mimeType)
Use this to append additional metadata entries when using composite
metadata.
|
RSocketRequester.RequestSpec metadata(Object metadata, org.springframework.util.MimeType mimeType)
IllegalArgumentException is raised if this
method is used when not using composite metadata.metadata - an Object to be encoded with a suitable
Encoder, or a
DataBuffermimeType - the mime type that describes the metadataRSocketRequester.ResponseSpec data(Object data)
Publisher of value(s)
Publisher via ReactiveAdapterRegistry
data - the Object value for the payload dataRSocketRequester.ResponseSpec data(Object producer, Class<?> elementClass)
data(Object) that also accepts a hint for the
types of values that will be produced. The class hint is used to
find a compatible Encoder once, up front vs per value.producer - the source of payload data value(s). This must be a
Publisher or another producer adaptable to a
Publisher via ReactiveAdapterRegistryelementClass - the type of values to be producedRSocketRequester.ResponseSpec data(Object producer, org.springframework.core.ParameterizedTypeReference<?> elementTypeRef)
data(Object, Class) for when the type hint has
to have a generic type. See ParameterizedTypeReference.producer - the source of payload data value(s). This must be a
Publisher or another producer adaptable to a
Publisher via ReactiveAdapterRegistryelementTypeRef - the type of values to be produced