Class RSocketServiceProxyFactory
java.lang.Object
org.springframework.messaging.rsocket.service.RSocketServiceProxyFactory
Factory to create a client proxy from 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
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilder to create anRSocketServiceProxyFactory. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Return anRSocketServiceProxyFactorybuilder.builder(RSocketRequester requester) Return anRSocketServiceProxyFactorybuilder, initialized with the given client.<S> ScreateClient(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 anRSocketServiceProxyFactorybuilder, initialized with the given client. -
builder
Return anRSocketServiceProxyFactorybuilder.
-