@RSocketExchange methods.
To create an instance, use static methods to obtain a
Builder.
| Modifier and Type | Class and Description |
|---|---|
| public static class | RSocketServiceProxyFactory.Builder
Builder to create an |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final Duration | |
| private final StringValueResolver | |
| private final ReactiveAdapterRegistry | |
| private final RSocketRequester |
| Access | Constructor and Description |
|---|---|
| private | RSocketServiceProxyFactory(RSocketRequester rsocketRequester, List<RSocketServiceArgumentResolver> argumentResolvers, StringValueResolver embeddedValueResolver, ReactiveAdapterRegistry reactiveAdapterRegistry, Duration blockTimeout)
|
| Modifier and Type | Method and Description |
|---|---|
| public static RSocketServiceProxyFactory. | builder(RSocketRequester requester)
Return an |
| public static RSocketServiceProxyFactory. | |
| public < the RSocket service type S> S | Returns: the created proxythe RSocket service to create a proxy for serviceType)Return a proxy that implements the given RSocket service interface to
perform RSocket requests and retrieve responses through the configured
|
| private <S> RSocketServiceMethod | |
| private boolean |
| argumentResolvers | back to summary |
|---|---|
| private final List<RSocketServiceArgumentResolver> argumentResolvers | |
| blockTimeout | back to summary |
|---|---|
| private final Duration blockTimeout
| |
| embeddedValueResolver | back to summary |
|---|---|
| private final StringValueResolver embeddedValueResolver
| |
| reactiveAdapterRegistry | back to summary |
|---|---|
| private final ReactiveAdapterRegistry reactiveAdapterRegistry | |
| rsocketRequester | back to summary |
|---|---|
| private final RSocketRequester rsocketRequester | |
| RSocketServiceProxyFactory | back to summary |
|---|---|
| private RSocketServiceProxyFactory(RSocketRequester rsocketRequester, List<RSocketServiceArgumentResolver> argumentResolvers, StringValueResolver embeddedValueResolver, ReactiveAdapterRegistry reactiveAdapterRegistry, Duration blockTimeout) | |
| builder | back to summary |
|---|---|
| public static RSocketServiceProxyFactory. Return an | |
| builder | back to summary |
|---|---|
| public static RSocketServiceProxyFactory. Return an | |
| createClient | back to summary |
|---|---|
| public <S> S createClient(Class<S> serviceType) Return a proxy that implements the given RSocket service interface to
perform RSocket requests and retrieve responses through the configured
| |
| createRSocketServiceMethod | back to summary |
|---|---|
| private <S> RSocketServiceMethod createRSocketServiceMethod(Class<S> serviceType, Method method) | |
| isExchangeMethod | back to summary |
|---|---|
| private boolean isExchangeMethod(Method method) | |
RSocketServiceProxyFactory.
| Modifier and Type | Field and Description |
|---|---|
| private Duration | |
| private final List | |
| private StringValueResolver | |
| private ReactiveAdapterRegistry | |
| private RSocketRequester |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public RSocketServiceProxyFactory. | Returns: this same builder instancethe timeout value blockTimeout)Configure how long to block for the response of an RSocket service method with a synchronous (blocking) method signature. |
| public RSocketServiceProxyFactory | |
| public RSocketServiceProxyFactory. | Returns: the same builder instancethe resolver to add resolver)Register a custom argument resolver, invoked ahead of default resolvers. |
| public RSocketServiceProxyFactory. | Returns: this same builder instancethe resolver to use resolver)Set the |
| private List | |
| public RSocketServiceProxyFactory. | Returns: this same builder instanceSet the |
| public RSocketServiceProxyFactory. | Returns: the same builder instancethe requester to use requester)Provide the requester to perform requests through. |
| blockTimeout | back to summary |
|---|---|
| private Duration blockTimeout
| |
| customArgumentResolvers | back to summary |
|---|---|
| private final List<RSocketServiceArgumentResolver> customArgumentResolvers | |
| embeddedValueResolver | back to summary |
|---|---|
| private StringValueResolver embeddedValueResolver
| |
| reactiveAdapterRegistry | back to summary |
|---|---|
| private ReactiveAdapterRegistry reactiveAdapterRegistry | |
| rsocketRequester | back to summary |
|---|---|
| private RSocketRequester rsocketRequester
| |
| Builder | back to summary |
|---|---|
| private Builder() | |
| blockTimeout | back to summary |
|---|---|
| public RSocketServiceProxyFactory. 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
| |
| build | back to summary |
|---|---|
| public RSocketServiceProxyFactory build() Build the | |
| customArgumentResolver | back to summary |
|---|---|
| public RSocketServiceProxyFactory. Register a custom argument resolver, invoked ahead of default resolvers.
| |
| embeddedValueResolver | back to summary |
|---|---|
| public RSocketServiceProxyFactory. Set the
| |
| initArgumentResolvers | back to summary |
|---|---|
| private List | |
| reactiveAdapterRegistry | back to summary |
|---|---|
| public RSocketServiceProxyFactory. Set the By default this is
| |
| rsocketRequester | back to summary |
|---|---|
| public RSocketServiceProxyFactory. Provide the requester to perform requests through.
| |
MethodInterceptor that invokes an RSocketServiceMethod.
| Modifier and Type | Field and Description |
|---|---|
| private final Map |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | invoke(MethodInvocation
the method invocation joinpoint invocation)Implements org. |
| serviceMethods | back to summary |
|---|---|
| private final Map<Method, RSocketServiceMethod> serviceMethods | |
| ServiceMethodInterceptor | back to summary |
|---|---|
| private ServiceMethodInterceptor(List<RSocketServiceMethod> methods) | |
| invoke | back to summary |
|---|---|
| public Object invoke(MethodInvocation invocation) throws Throwable Implements org. Doc from org. Implement this method to perform extra treatments before and
after the invocation. Polite implementations would certainly
like to invoke
| |