Class RSockets
java.lang.Object
org.springframework.integration.rsocket.dsl.RSockets
The RSocket components Factory.
- Since:
- 5.2
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionstatic RSocketInboundGatewaySpec
inboundGateway
(String... path) Create anRSocketInboundGatewaySpec
builder for request-reply reactive gateway based on the providedpath
array for mapping.static RSocketOutboundGatewaySpec
outboundGateway
(String route, Object... routeVariables) Create anRSocketOutboundGatewaySpec
builder for request-reply gateway based on providedroute
and optional variables to expand route template.static <P> RSocketOutboundGatewaySpec
outboundGateway
(Function<Message<P>, ?> routeFunction) Create anRSocketOutboundGatewaySpec
builder for request-reply gateway based on providedFunction
to evaluate targetroute
against request message.static RSocketOutboundGatewaySpec
outboundGateway
(Expression routeExpression) Create anRSocketOutboundGatewaySpec
builder for request-reply gateway based on provided SpELExpression
to evaluate targetroute
against request message.
-
Method Details
-
outboundGateway
Create anRSocketOutboundGatewaySpec
builder for request-reply gateway based on providedroute
and optional variables to expand route template.- Parameters:
route
- theroute
to send requests.routeVariables
- the variables to expand route template.- Returns:
- the RSocketOutboundGatewaySpec instance
-
outboundGateway
Create anRSocketOutboundGatewaySpec
builder for request-reply gateway based on providedFunction
to evaluate targetroute
against request message.- Type Parameters:
P
- the expected payload type.- Parameters:
routeFunction
- theFunction
to evaluateroute
at runtime.- Returns:
- the RSocketOutboundGatewaySpec instance
-
outboundGateway
Create anRSocketOutboundGatewaySpec
builder for request-reply gateway based on provided SpELExpression
to evaluate targetroute
against request message.- Parameters:
routeExpression
- the SpELExpression
to evaluateroute
at runtime.- Returns:
- the RSocketOutboundGatewaySpec instance
-
inboundGateway
Create anRSocketInboundGatewaySpec
builder for request-reply reactive gateway based on the providedpath
array for mapping.- Parameters:
path
- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the RSocketInboundGatewaySpec instance
-