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 wait for a response for an HTTP 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 wait for a response for an HTTP service method with a synchronous (blocking) method signature.By default this is 5 seconds.
- Parameters:
blockTimeout
- the timeout value- Returns:
- this same builder instance
-
build
Build theRSocketServiceProxyFactory
instance.
-