public class ImapIdleChannelAdapter extends MessageProducerSupport implements org.springframework.beans.factory.BeanClassLoaderAware, org.springframework.context.ApplicationEventPublisherAware
Message
instance that was received.Modifier and Type | Class and Description |
---|---|
class |
ImapIdleChannelAdapter.ImapIdleExceptionEvent |
logger
Constructor and Description |
---|
ImapIdleChannelAdapter(ImapMailReceiver mailReceiver) |
Modifier and Type | Method and Description |
---|---|
protected void |
doStart()
Takes no action by default.
|
protected void |
doStop()
Takes no action by default.
|
java.lang.String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
void |
setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanClassLoader(java.lang.ClassLoader classLoader) |
void |
setSendingTaskExecutor(java.util.concurrent.Executor sendingTaskExecutor)
Specify an
Executor used to send messages received by the
adapter. |
void |
setShouldReconnectAutomatically(boolean shouldReconnectAutomatically)
Specify whether the IDLE task should reconnect automatically after
catching a
FolderClosedException while waiting for messages. |
void |
setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory) |
onInit, sendMessage, setErrorChannel, setOutputChannel, setSendTimeout, setShouldTrack
getPhase, isAutoStartup, isRunning, setAutoStartup, setPhase, setTaskScheduler, start, stop, stop
afterPropertiesSet, getApplicationContextId, getBeanFactory, getComponentName, getConversionService, getIntegrationProperties, getIntegrationProperty, getTaskScheduler, setApplicationContext, setBeanFactory, setBeanName, setComponentName, setConversionService, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getComponentName
public ImapIdleChannelAdapter(ImapMailReceiver mailReceiver)
public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
public void setAdviceChain(java.util.List<org.aopalliance.aop.Advice> adviceChain)
public void setSendingTaskExecutor(java.util.concurrent.Executor sendingTaskExecutor)
Executor
used to send messages received by the
adapter.sendingTaskExecutor
- the sendingTaskExecutor to setpublic void setShouldReconnectAutomatically(boolean shouldReconnectAutomatically)
FolderClosedException
while waiting for messages. The
default value is true
.public java.lang.String getComponentType()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public void setBeanClassLoader(java.lang.ClassLoader classLoader)
setBeanClassLoader
in interface org.springframework.beans.factory.BeanClassLoaderAware
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
protected void doStart()
MessageProducerSupport
doStart
in class MessageProducerSupport
protected void doStop()
MessageProducerSupport
doStop
in class MessageProducerSupport