Class RSocketOutboundGatewaySpec
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
org.springframework.integration.dsl.IntegrationComponentSpec<S,H>
org.springframework.integration.dsl.MessageHandlerSpec<RSocketOutboundGatewaySpec,RSocketOutboundGateway>
org.springframework.integration.rsocket.dsl.RSocketOutboundGatewaySpec
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<RSocketOutboundGateway>
,InitializingBean
,Lifecycle
,Phased
,SmartLifecycle
public class RSocketOutboundGatewaySpec extends MessageHandlerSpec<RSocketOutboundGatewaySpec,RSocketOutboundGateway>
The
MessageHandlerSpec
implementation for the RSocketOutboundGateway
.- Since:
- 5.2
- Author:
- Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
PARSER, target
-
Constructor Summary
Constructors Modifier Constructor Description protected
RSocketOutboundGatewaySpec(String route, Object... routeVariables)
protected
RSocketOutboundGatewaySpec(Expression routeExpression)
-
Method Summary
Modifier and Type Method Description RSocketOutboundGatewaySpec
clientRSocketConnector(ClientRSocketConnector clientRSocketConnector)
Configure aClientRSocketConnector
for client side requests based on the connection provided by theClientRSocketConnector.getRequester()
.RSocketOutboundGatewaySpec
expectedResponseType(Class<?> expectedResponseType)
Specify the expected response type for the RSocket response.RSocketOutboundGatewaySpec
expectedResponseType(String expectedResponseTypeExpression)
Specify theExpression
to determine the type for the RSocket response.<P> RSocketOutboundGatewaySpec
expectedResponseType(Function<Message<P>,?> expectedResponseTypeFunction)
Specify theFunction
to determine the type for the RSocket response.RSocketOutboundGatewaySpec
expectedResponseType(Expression expectedResponseTypeExpression)
Specify anExpression
to determine the type for the RSocket response.RSocketOutboundGatewaySpec
interactionModel(String interactionModelExpression)
Configure a SpEL expression to evaluate anRSocketInteractionModel
for the RSocket request type at runtime against a request message.<P> RSocketOutboundGatewaySpec
interactionModel(Function<Message<P>,?> interactionModelFunction)
Configure aFunction
to evaluate anRSocketInteractionModel
for the RSocket request type at runtime against a request message.RSocketOutboundGatewaySpec
interactionModel(Expression interactionModelExpression)
Configure a SpEL expression to evaluate anRSocketInteractionModel
for the RSocket request type at runtime against a request message.RSocketOutboundGatewaySpec
interactionModel(RSocketInteractionModel interactionModel)
Configure anRSocketInteractionModel
for the RSocket request type.RSocketOutboundGatewaySpec
metadata(String metadataExpression)
Configure a SpEL expression to evaluate a metadata as aMap<Object, MimeType>
for the RSocket request against request message.<P> RSocketOutboundGatewaySpec
metadata(Function<Message<P>,Map<Object,MimeType>> metadataFunction)
Configure aFunction
to evaluate a metadata as aMap<Object, MimeType>
for RSocket request against request message.RSocketOutboundGatewaySpec
metadata(Expression metadataExpression)
Configure a SpEL expression to evaluate a metadata as aMap<Object, MimeType>
for the RSocket request type at runtime against a request message.RSocketOutboundGatewaySpec
publisherElementType(Class<?> publisherElementType)
Configure a type for a requestPublisher
elements.RSocketOutboundGatewaySpec
publisherElementType(String publisherElementTypeExpression)
Configure a SpEL expression to evaluate a requestPublisher
elements type at runtime against a request message.<P> RSocketOutboundGatewaySpec
publisherElementType(Function<Message<P>,?> publisherElementTypeFunction)
Configure aFunction
to evaluate a requestPublisher
elements type at runtime against a request message.RSocketOutboundGatewaySpec
publisherElementType(Expression publisherElementTypeExpression)
Configure a SpEL expression to evaluate a requestPublisher
elements type at runtime against a request message.Methods inherited from class org.springframework.integration.dsl.IntegrationComponentSpec
_this, createInstance, destroyInstance, doGet, get, getId, getObjectType, getPhase, id, isAutoStartup, isRunning, start, stop, stop
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Constructor Details
-
Method Details
-
clientRSocketConnector
public RSocketOutboundGatewaySpec clientRSocketConnector(ClientRSocketConnector clientRSocketConnector)Configure aClientRSocketConnector
for client side requests based on the connection provided by theClientRSocketConnector.getRequester()
.- Parameters:
clientRSocketConnector
- theClientRSocketConnector
to use.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setClientRSocketConnector(ClientRSocketConnector)
-
interactionModel
Configure anRSocketInteractionModel
for the RSocket request type.- Parameters:
interactionModel
- theRSocketInteractionModel
to use.- Returns:
- the spec
- Since:
- 5.2.2
- See Also:
RSocketOutboundGateway.setInteractionModel(RSocketInteractionModel)
-
interactionModel
public <P> RSocketOutboundGatewaySpec interactionModel(Function<Message<P>,?> interactionModelFunction)Configure aFunction
to evaluate anRSocketInteractionModel
for the RSocket request type at runtime against a request message.- Type Parameters:
P
- the expected request message payload type.- Parameters:
interactionModelFunction
- theFunction
to use.- Returns:
- the spec
- Since:
- 5.2.2
- See Also:
RSocketOutboundGateway.setInteractionModelExpression(Expression)
-
interactionModel
Configure a SpEL expression to evaluate anRSocketInteractionModel
for the RSocket request type at runtime against a request message.- Parameters:
interactionModelExpression
- the SpEL expression to use.- Returns:
- the spec
- Since:
- 5.2.2
- See Also:
RSocketOutboundGateway.setInteractionModelExpression(Expression)
-
interactionModel
Configure a SpEL expression to evaluate anRSocketInteractionModel
for the RSocket request type at runtime against a request message.- Parameters:
interactionModelExpression
- the SpEL expression to use.- Returns:
- the spec
- Since:
- 5.2.2
- See Also:
RSocketOutboundGateway.setInteractionModelExpression(Expression)
-
publisherElementType
Configure a type for a requestPublisher
elements.- Parameters:
publisherElementType
- the type of the requestPublisher
elements.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setPublisherElementType(Class)
-
publisherElementType
public <P> RSocketOutboundGatewaySpec publisherElementType(Function<Message<P>,?> publisherElementTypeFunction)Configure aFunction
to evaluate a requestPublisher
elements type at runtime against a request message.- Type Parameters:
P
- the expected request message payload type.- Parameters:
publisherElementTypeFunction
- theFunction
to evaluate a type for the requestPublisher
elements.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setPublisherElementTypeExpression(Expression)
-
publisherElementType
Configure a SpEL expression to evaluate a requestPublisher
elements type at runtime against a request message.- Parameters:
publisherElementTypeExpression
- the expression to evaluate a type for the requestPublisher
elements.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setPublisherElementTypeExpression(Expression)
-
publisherElementType
Configure a SpEL expression to evaluate a requestPublisher
elements type at runtime against a request message.- Parameters:
publisherElementTypeExpression
- the expression to evaluate a type for the requestPublisher
elements.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setPublisherElementTypeExpression(Expression)
-
expectedResponseType
Specify the expected response type for the RSocket response.- Parameters:
expectedResponseType
- The expected type.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setExpectedResponseType(Class)
-
expectedResponseType
public <P> RSocketOutboundGatewaySpec expectedResponseType(Function<Message<P>,?> expectedResponseTypeFunction)Specify theFunction
to determine the type for the RSocket response.- Type Parameters:
P
- the expected request message payload type.- Parameters:
expectedResponseTypeFunction
- The expected response typeFunction
.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setExpectedResponseTypeExpression(Expression)
-
expectedResponseType
Specify theExpression
to determine the type for the RSocket response.- Parameters:
expectedResponseTypeExpression
- The expected response type expression.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setExpectedResponseTypeExpression(Expression)
-
expectedResponseType
Specify anExpression
to determine the type for the RSocket response.- Parameters:
expectedResponseTypeExpression
- The expected response type expression.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setExpectedResponseTypeExpression(Expression)
-
metadata
public <P> RSocketOutboundGatewaySpec metadata(Function<Message<P>,Map<Object,MimeType>> metadataFunction)Configure aFunction
to evaluate a metadata as aMap<Object, MimeType>
for RSocket request against request message.- Type Parameters:
P
- the expected request message payload type.- Parameters:
metadataFunction
- theFunction
to use.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setMetadataExpression(Expression)
-
metadata
Configure a SpEL expression to evaluate a metadata as aMap<Object, MimeType>
for the RSocket request against request message.- Parameters:
metadataExpression
- the SpEL expression to use.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setMetadataExpression(Expression)
-
metadata
Configure a SpEL expression to evaluate a metadata as aMap<Object, MimeType>
for the RSocket request type at runtime against a request message.- Parameters:
metadataExpression
- the SpEL expression to use.- Returns:
- the spec
- See Also:
RSocketOutboundGateway.setMetadataExpression(Expression)
-