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 RSocketInboundGatewaySpecinboundGateway(String... path) Create anRSocketInboundGatewaySpecbuilder for request-reply reactive gateway based on the providedpatharray for mapping.static RSocketOutboundGatewaySpecoutboundGateway(String route, Object... routeVariables) Create anRSocketOutboundGatewaySpecbuilder for request-reply gateway based on providedrouteand optional variables to expand route template.static <P> RSocketOutboundGatewaySpecoutboundGateway(Function<Message<P>, ?> routeFunction) Create anRSocketOutboundGatewaySpecbuilder for request-reply gateway based on providedFunctionto evaluate targetrouteagainst request message.static RSocketOutboundGatewaySpecoutboundGateway(Expression routeExpression) Create anRSocketOutboundGatewaySpecbuilder for request-reply gateway based on provided SpELExpressionto evaluate targetrouteagainst request message.
-
Method Details
-
outboundGateway
Create anRSocketOutboundGatewaySpecbuilder for request-reply gateway based on providedrouteand optional variables to expand route template.- Parameters:
route- therouteto send requests.routeVariables- the variables to expand route template.- Returns:
- the RSocketOutboundGatewaySpec instance
-
outboundGateway
Create anRSocketOutboundGatewaySpecbuilder for request-reply gateway based on providedFunctionto evaluate targetrouteagainst request message.- Type Parameters:
P- the expected payload type.- Parameters:
routeFunction- theFunctionto evaluaterouteat runtime.- Returns:
- the RSocketOutboundGatewaySpec instance
-
outboundGateway
Create anRSocketOutboundGatewaySpecbuilder for request-reply gateway based on provided SpELExpressionto evaluate targetrouteagainst request message.- Parameters:
routeExpression- the SpELExpressionto evaluaterouteat runtime.- Returns:
- the RSocketOutboundGatewaySpec instance
-
inboundGateway
Create anRSocketInboundGatewaySpecbuilder for request-reply reactive gateway based on the providedpatharray for mapping.- Parameters:
path- the path mapping URIs (e.g. "/myPath.do").- Returns:
- the RSocketInboundGatewaySpec instance
-