public final class RSockets extends Object
Modifier and Type | Method and Description |
---|---|
static RSocketInboundGatewaySpec |
inboundGateway(String... path)
Create an
RSocketInboundGatewaySpec builder for request-reply reactive gateway
based on the provided path array for mapping. |
static RSocketOutboundGatewaySpec |
outboundGateway(Expression routeExpression)
Create an
RSocketOutboundGatewaySpec builder for request-reply gateway
based on provided SpEL Expression to evaluate target route against request message. |
static <P> RSocketOutboundGatewaySpec |
outboundGateway(java.util.function.Function<Message<P>,?> routeFunction)
Create an
RSocketOutboundGatewaySpec builder for request-reply gateway
based on provided Function to evaluate target route against request message. |
static RSocketOutboundGatewaySpec |
outboundGateway(String route)
Create an
RSocketOutboundGatewaySpec builder for request-reply gateway
based on provided route . |
public static RSocketOutboundGatewaySpec outboundGateway(String route)
RSocketOutboundGatewaySpec
builder for request-reply gateway
based on provided route
.route
- the route
to send requests.public static <P> RSocketOutboundGatewaySpec outboundGateway(java.util.function.Function<Message<P>,?> routeFunction)
RSocketOutboundGatewaySpec
builder for request-reply gateway
based on provided Function
to evaluate target route
against request message.P
- the expected payload type.routeFunction
- the Function
to evaluate route
at runtime.public static RSocketOutboundGatewaySpec outboundGateway(Expression routeExpression)
RSocketOutboundGatewaySpec
builder for request-reply gateway
based on provided SpEL Expression
to evaluate target route
against request message.routeExpression
- the SpEL Expression
to evaluate route
at runtime.public static RSocketInboundGatewaySpec inboundGateway(String... path)
RSocketInboundGatewaySpec
builder for request-reply reactive gateway
based on the provided path
array for mapping.path
- the path mapping URIs (e.g. "/myPath.do").