Interface RSocketStrategies
public interface RSocketStrategies
Access to strategies for use by RSocket requester and responder components.
- Since:
- 5.2
- Author:
- Rossen Stoyanchev
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe builder options for creatingRSocketStrategies.
- 
Method SummaryModifier and TypeMethodDescriptionstatic RSocketStrategies.Builderbuilder()Return a builder to prepare a newRSocketStrategiesinstance.static RSocketStrategiescreate()Create anRSocketStrategiesinstance with default settings.Return the configureddataBufferFactory.default <T> Decoder<T>decoder(ResolvableType elementType, MimeType mimeType) Find a compatible Decoder for the given element type.decoders()Return the configureddecoders.default <T> Encoder<T>encoder(ResolvableType elementType, MimeType mimeType) Find a compatible Encoder for the given element type.encoders()Return the configuredencoders.Return the configuredRSocketStrategies.Builder.metadataExtractor(MetadataExtractor).default RSocketStrategies.Buildermutate()Return a builder to create a newRSocketStrategiesinstance replicated from the current instance.Return the configuredreactiveAdapterRegistry.Return the configuredRSocketStrategies.Builder.routeMatcher(RouteMatcher).
- 
Method Details- 
encodersReturn the configuredencoders.- See Also:
 
- 
encoderFind a compatible Encoder for the given element type.- Type Parameters:
- T- for casting the Encoder to the expected element type
- Parameters:
- elementType- the element type to match
- mimeType- the MimeType to match
- Returns:
- the matching Encoder
- Throws:
- IllegalArgumentException- if no matching Encoder is found
 
- 
decodersReturn the configureddecoders.- See Also:
 
- 
decoderFind a compatible Decoder for the given element type.- Type Parameters:
- T- for casting the Decoder to the expected element type
- Parameters:
- elementType- the element type to match
- mimeType- the MimeType to match
- Returns:
- the matching Decoder
- Throws:
- IllegalArgumentException- if no matching Decoder is found
 
- 
routeMatcherRouteMatcher routeMatcher()Return the configuredRSocketStrategies.Builder.routeMatcher(RouteMatcher).
- 
reactiveAdapterRegistryReactiveAdapterRegistry reactiveAdapterRegistry()Return the configuredreactiveAdapterRegistry.
- 
dataBufferFactoryDataBufferFactory dataBufferFactory()Return the configureddataBufferFactory.
- 
metadataExtractorMetadataExtractor metadataExtractor()Return the configuredRSocketStrategies.Builder.metadataExtractor(MetadataExtractor).
- 
mutateReturn a builder to create a newRSocketStrategiesinstance replicated from the current instance.
- 
createCreate anRSocketStrategiesinstance with default settings. Equivalent toRSocketStrategies.builder().build(). See individual builder methods for details on default settings.
- 
builderReturn a builder to prepare a newRSocketStrategiesinstance. The builder applies default settings, see individual builder methods for details.
 
-