Class RSocketServiceProxyFactory.Builder
java.lang.Object
org.springframework.messaging.rsocket.service.RSocketServiceProxyFactory.Builder
- Enclosing class:
- RSocketServiceProxyFactory
Builder to create an
RSocketServiceProxyFactory
.-
Method Summary
Modifier and TypeMethodDescriptionblockTimeout
(Duration blockTimeout) Configure how long to block for the response of an RSocket service method with a synchronous (blocking) method signature.build()
Build theRSocketServiceProxyFactory
instance.Register a custom argument resolver, invoked ahead of default resolvers.embeddedValueResolver
(StringValueResolver resolver) Set theStringValueResolver
to use for resolving placeholders and expressions embedded inRSocketExchange.value()
.Set theReactiveAdapterRegistry
to use to support different asynchronous types for HTTP service method return values.rsocketRequester
(RSocketRequester requester) Provide the requester to perform requests through.
-
Method Details
-
rsocketRequester
Provide the requester to perform requests through.- Parameters:
requester
- the requester to use- Returns:
- the same builder instance
-
customArgumentResolver
public RSocketServiceProxyFactory.Builder customArgumentResolver(RSocketServiceArgumentResolver resolver) Register a custom argument resolver, invoked ahead of default resolvers.- Parameters:
resolver
- the resolver to add- Returns:
- the same builder instance
-
embeddedValueResolver
Set theStringValueResolver
to use for resolving placeholders and expressions embedded inRSocketExchange.value()
.- Parameters:
resolver
- the resolver to use- Returns:
- this same builder instance
-
reactiveAdapterRegistry
Set theReactiveAdapterRegistry
to use to support different asynchronous types for HTTP service method return values.By default this is
ReactiveAdapterRegistry.getSharedInstance()
.- Returns:
- this same builder instance
-
blockTimeout
Configure how long to block for the response of an RSocket service method with a synchronous (blocking) method signature.By default this is not set, in which case the behavior depends on connection and response timeout settings of the underlying RSocket
ClientTransport
as well as RSocket keep-alive settings. We recommend configuring timeout values at the RSocket level which provides more control.- Parameters:
blockTimeout
- the timeout value- Returns:
- this same builder instance
-
build
Build theRSocketServiceProxyFactory
instance.
-