Class RSocketServiceProxyFactory
java.lang.Object
org.springframework.messaging.rsocket.service.RSocketServiceProxyFactory
Factory for creating a client proxy given an RSocket service interface with
@RSocketExchange
methods.
To create an instance, use static methods to obtain a
Builder
.
- Since:
- 6.0
- Author:
- Rossen Stoyanchev
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Builder to create anRSocketServiceProxyFactory
. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Return anRSocketServiceProxyFactory
builder.builder
(RSocketRequester requester) Return anRSocketServiceProxyFactory
builder, initialized with the given client.<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 configuredRSocketRequester
.
-
Method Details
-
createClient
Return a proxy that implements the given RSocket service interface to perform RSocket requests and retrieve responses through the configuredRSocketRequester
.- Type Parameters:
S
- the RSocket service type- Parameters:
serviceType
- the RSocket service to create a proxy for- Returns:
- the created proxy
-
builder
Return anRSocketServiceProxyFactory
builder, initialized with the given client. -
builder
Return anRSocketServiceProxyFactory
builder.
-