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
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected JpaOutboundGateway
void
setGatewayType
(OutboundGatewayType gatewayType) void
setJpaExecutor
(JpaExecutor jpaExecutor) void
setProducesReply
(boolean producesReply) void
setReplyTimeout
(long replyTimeout) Specifies the time the gateway will wait to send the result to the reply channel.void
setRequiresReply
(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) Specifies 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 (for example a bounded QueueChannel that is currently full). By default the Gateway will wait indefinitely.- Parameters:
replyTimeout
- The timeout in milliseconds
-
setRequiresReply
public void setRequiresReply(boolean requiresReply) -
createHandler
- Specified by:
createHandler
in classAbstractSimpleMessageHandlerFactoryBean<JpaOutboundGateway>
-