接口 RSocketRequester.MetadataSpec<S extends RSocketRequester.MetadataSpec<S>>
- 类型参数:
S
- a self reference to the spec type
- 所有已知子接口:
RSocketRequester.RequestSpec
- 封闭接口:
- RSocketRequester
public static interface RSocketRequester.MetadataSpec<S extends RSocketRequester.MetadataSpec<S>>
Spec for providing additional composite metadata entries.
方法详细资料
metadata
S metadata(Object metadata, MimeType mimeType)
Use this to append additional metadata entries when using composite metadata. AnIllegalArgumentException
is raised if this method is used when not using composite metadata. The metadata value be a concrete value or any producer of a single value that can be adapted to aPublisher
viaReactiveAdapterRegistry
.- 参数:
metadata
- an Object to be encoded with a suitableEncoder
, or aDataBuffer
mimeType
- the mime type that describes the metadata