Interface RSocketStrategies.Builder
- Enclosing interface:
- RSocketStrategies
RSocketStrategies.- 
Method SummaryModifier and TypeMethodDescriptionbuild()Build theRSocketStrategiesinstance.dataBufferFactory(DataBufferFactory bufferFactory) Configure the DataBufferFactory to use for allocating buffers when preparing requests or creating responses.Append to the list of decoders to use for de-serializing Objects from the data or metadata of aPayload.Apply the consumer to the list of configured decoders, immediately.Append to the list of encoders to use for serializing Objects to the data or metadata of aPayload.Apply the consumer to the list of configured encoders, immediately.metadataExtractor(MetadataExtractor metadataExtractor) Configure aMetadataExtractorto extract the route along with other metadata.Apply the consumer to theMetadataExtractorRegistryin order to register extra metadata entry extractors.Configure the registry for reactive type support.routeMatcher(RouteMatcher routeMatcher) Configure aRouteMatcherfor matching routes to message handlers based on route patterns.
- 
Method Details- 
encoderAppend to the list of encoders to use for serializing Objects to the data or metadata of aPayload.By default this is initialized with encoders for String,byte[],ByteBuffer, andDataBuffer.
- 
encodersApply the consumer to the list of configured encoders, immediately.
- 
decoderAppend to the list of decoders to use for de-serializing Objects from the data or metadata of aPayload.By default this is initialized with decoders for String,byte[],ByteBuffer, andDataBuffer.
- 
decodersApply the consumer to the list of configured decoders, immediately.
- 
routeMatcherConfigure aRouteMatcherfor matching routes to message handlers based on route patterns. This option is applicable to client or server responders.By default, SimpleRouteMatcheris used, backed byAntPathMatcherwith "." as separator. For better efficiency consider switching toPathPatternRouteMatcherfromspring-webinstead.
- 
reactiveAdapterStrategyConfigure the registry for reactive type support. This can be used to adapt to, and/or determine the semantics of a givenPublisher.By default this ReactiveAdapterRegistry.getSharedInstance().
- 
dataBufferFactoryConfigure the DataBufferFactory to use for allocating buffers when preparing requests or creating responses.By default this is set to NettyDataBufferFactorywith pooled, allocated buffers for zero copy. RSocket must also be configured for zero copy. For client setup,RSocketRequester.Builderadapts automatically to theDataBufferFactoryconfigured here, and sets the frame decoder inRSocketConnectoraccordingly. For server setup, theRSocketServermust be configured accordingly for zero copy too.If using DefaultDataBufferFactoryinstead, there is no need for related config changes in RSocket.
- 
metadataExtractorConfigure aMetadataExtractorto extract the route along with other metadata. This option is applicable to client or server responders.By default this is DefaultMetadataExtractorcreated with theconfigureddecoders and extracting a route from"message/x.rsocket.routing.v0"metadata.
- 
metadataExtractorRegistryApply the consumer to theMetadataExtractorRegistryin order to register extra metadata entry extractors.
- 
buildRSocketStrategies build()Build theRSocketStrategiesinstance.
 
-