接口 RSocketStrategies
public interface RSocketStrategies
Access to strategies for use by RSocket requester and responder components.- 从以下版本开始:
- 5.2
- 作者:
- Rossen Stoyanchev
嵌套类概要
嵌套类 修饰符和类型 接口 说明 static interfaceRSocketStrategies.BuilderThe builder options for creatingRSocketStrategies.
方法概要
所有方法 静态方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 static RSocketStrategies.Builderbuilder()Return a builder to prepare a newRSocketStrategiesinstance.static RSocketStrategiescreate()Create anRSocketStrategiesinstance with default settings.DataBufferFactorydataBufferFactory()Return the configureddataBufferFactory.default <T> Decoder<T>decoder(ResolvableType elementType, MimeType mimeType)Find a compatible Decoder for the given element type.List<Decoder<?>>decoders()Return the configureddecoders.default <T> Encoder<T>encoder(ResolvableType elementType, MimeType mimeType)Find a compatible Encoder for the given element type.List<Encoder<?>>encoders()Return the configuredencoders.MetadataExtractormetadataExtractor()Return the configuredRSocketStrategies.Builder.metadataExtractor(MetadataExtractor).default RSocketStrategies.Buildermutate()Return a builder to create a newRSocketStrategiesinstance replicated from the current instance.ReactiveAdapterRegistryreactiveAdapterRegistry()Return the configuredreactiveAdapterRegistry.RouteMatcherrouteMatcher()Return the configuredRSocketStrategies.Builder.routeMatcher(RouteMatcher).
方法详细资料
encoder
default <T> Encoder<T> encoder(ResolvableType elementType, @Nullable MimeType mimeType)
Find a compatible Encoder for the given element type.- 类型参数:
T- for casting the Encoder to the expected element type- 参数:
elementType- the element type to matchmimeType- the MimeType to match- 返回:
- the matching Encoder
- 抛出:
IllegalArgumentException- if no matching Encoder is found
decoder
default <T> Decoder<T> decoder(ResolvableType elementType, @Nullable MimeType mimeType)
Find a compatible Decoder for the given element type.- 类型参数:
T- for casting the Decoder to the expected element type- 参数:
elementType- the element type to matchmimeType- the MimeType to match- 返回:
- the matching Decoder
- 抛出:
IllegalArgumentException- if no matching Decoder is found
routeMatcher
RouteMatcher routeMatcher()
Return the configuredRSocketStrategies.Builder.routeMatcher(RouteMatcher).
reactiveAdapterRegistry
ReactiveAdapterRegistry reactiveAdapterRegistry()
Return the configuredreactiveAdapterRegistry.
dataBufferFactory
DataBufferFactory dataBufferFactory()
Return the configureddataBufferFactory.
metadataExtractor
MetadataExtractor metadataExtractor()
Return the configuredRSocketStrategies.Builder.metadataExtractor(MetadataExtractor).
mutate
default RSocketStrategies.Builder mutate()
Return a builder to create a newRSocketStrategiesinstance replicated from the current instance.
create
static RSocketStrategies create()
Create anRSocketStrategiesinstance with default settings. Equivalent toRSocketStrategies.builder().build(). See individual builder methods for details on default settings.
builder
static RSocketStrategies.Builder builder()
Return a builder to prepare a newRSocketStrategiesinstance. The builder applies default settings, see individual builder methods for details.