Class JpaOutboundGatewayFactoryBean
java.lang.Object
org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean<JpaOutboundGateway>
org.springframework.integration.jpa.outbound.JpaOutboundGatewayFactoryBean
- All Implemented Interfaces:
Aware,BeanFactoryAware,BeanNameAware,FactoryBean<MessageHandler>,ApplicationContextAware,ApplicationEventPublisherAware
public class JpaOutboundGatewayFactoryBean
extends AbstractSimpleMessageHandlerFactoryBean<JpaOutboundGateway>
The
JpaOutboundGatewayFactoryBean creates instances of the
JpaOutboundGateway. Optionally this
FactoryBean will add Aop Advices (e.g.
TransactionInterceptor to the
JpaOutboundGateway instance.- Since:
- 2.2
- Author:
- Amol Nayak, Gunnar Hillert, Gary Russell, Artem Bilan
-
Field Summary
Fields inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
loggerFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected JpaOutboundGatewayvoidsetGatewayType(OutboundGatewayType gatewayType) voidsetJpaExecutor(JpaExecutor jpaExecutor) voidsetProducesReply(boolean producesReply) voidsetReplyTimeout(long replyTimeout) Specify the time the gateway will wait to send the result to the reply channel.voidsetRequiresReply(boolean requiresReply) Methods inherited from class org.springframework.integration.config.AbstractSimpleMessageHandlerFactoryBean
createHandlerInternal, getBeanFactory, getObject, getObjectType, getPreCreationHandlerType, isSingleton, setAdviceChain, setApplicationContext, setApplicationEventPublisher, setAsync, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setOrder, setOutputChannel, setOutputChannelName
-
Constructor Details
-
JpaOutboundGatewayFactoryBean
public JpaOutboundGatewayFactoryBean()
-
-
Method Details
-
setJpaExecutor
-
setGatewayType
-
setProducesReply
public void setProducesReply(boolean producesReply) -
setReplyTimeout
public void setReplyTimeout(long replyTimeout) Specify the time the gateway will wait to send the result to the reply channel. Only applies when the reply channel itself might block the 'send' operation (for example a bounded QueueChannel that is currently full).- Parameters:
replyTimeout- The timeout in milliseconds
-
setRequiresReply
public void setRequiresReply(boolean requiresReply) -
createHandler
- Specified by:
createHandlerin classAbstractSimpleMessageHandlerFactoryBean<JpaOutboundGateway>
-