Interface RSocketStrategies
public interface RSocketStrategies
Access to strategies for use by RSocket requester and responder components.
- Since:
- 5.2
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceThe builder options for creatingRSocketStrategies. -
Method Summary
Modifier and TypeMethodDescriptionstatic RSocketStrategies.Builderbuilder()Return a builder to prepare a newRSocketStrategiesinstance.static RSocketStrategiescreate()Create anRSocketStrategiesinstance with default settings.org.springframework.core.io.buffer.DataBufferFactoryReturn the configureddataBufferFactory.default <T> org.springframework.core.codec.Decoder<T> decoder(org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType) Find a compatible Decoder for the given element type.List<org.springframework.core.codec.Decoder<?>> decoders()Return the configureddecoders.default <T> org.springframework.core.codec.Encoder<T> encoder(org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType) Find a compatible Encoder for the given element type.List<org.springframework.core.codec.Encoder<?>> 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.org.springframework.core.ReactiveAdapterRegistryReturn the configuredreactiveAdapterRegistry.org.springframework.util.RouteMatcherReturn the configuredRSocketStrategies.Builder.routeMatcher(RouteMatcher).
-
Method Details
-
encoders
-
encoder
default <T> org.springframework.core.codec.Encoder<T> encoder(org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType) Find 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 matchmimeType- the MimeType to match- Returns:
- the matching Encoder
- Throws:
IllegalArgumentException- if no matching Encoder is found
-
decoders
-
decoder
default <T> org.springframework.core.codec.Decoder<T> decoder(org.springframework.core.ResolvableType elementType, @Nullable org.springframework.util.MimeType mimeType) Find 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 matchmimeType- the MimeType to match- Returns:
- the matching Decoder
- Throws:
IllegalArgumentException- if no matching Decoder is found
-
routeMatcher
org.springframework.util.RouteMatcher routeMatcher()Return the configuredRSocketStrategies.Builder.routeMatcher(RouteMatcher). -
reactiveAdapterRegistry
org.springframework.core.ReactiveAdapterRegistry reactiveAdapterRegistry()Return the configuredreactiveAdapterRegistry. -
dataBufferFactory
org.springframework.core.io.buffer.DataBufferFactory dataBufferFactory()Return the configureddataBufferFactory. -
metadataExtractor
MetadataExtractor metadataExtractor()Return the configuredRSocketStrategies.Builder.metadataExtractor(MetadataExtractor). -
mutate
Return a builder to create a newRSocketStrategiesinstance replicated from the current instance. -
create
Create anRSocketStrategiesinstance with default settings. Equivalent toRSocketStrategies.builder().build(). See individual builder methods for details on default settings. -
builder
Return a builder to prepare a newRSocketStrategiesinstance. The builder applies default settings, see individual builder methods for details.
-