public class ImapIdleChannelAdapter extends MessageProducerSupport implements BeanClassLoaderAware, ApplicationEventPublisherAware
Message
instance that was received.| Modifier and Type | Class and Description |
|---|---|
class |
ImapIdleChannelAdapter.ImapIdleExceptionEvent |
lifecycleCondition, lifecycleLockEXPRESSION_PARSER, loggerDEFAULT_PHASE| Constructor and Description |
|---|
ImapIdleChannelAdapter(ImapMailReceiver mailReceiver) |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
protected void |
doStart()
Takes no action by default.
|
protected void |
doStop()
Takes no action by default.
|
String |
getComponentType()
Subclasses may implement this method to provide component type information.
|
void |
setAdviceChain(List<Advice> adviceChain) |
void |
setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher) |
void |
setBeanClassLoader(ClassLoader classLoader) |
void |
setReconnectDelay(long reconnectDelay)
The time between connection attempts in milliseconds (default 10 seconds).
|
void |
setSendingTaskExecutor(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) |
afterSingletonsInstantiated, buildErrorMessage, getErrorChannel, getErrorMessageAttributes, getMessagingTemplate, getOutputChannel, onInit, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrackdoStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stopafterPropertiesSet, extractTypeIfPossible, generateId, getApplicationContext, getApplicationContextId, getBeanDescription, getBeanFactory, getBeanName, getChannelResolver, getComponentName, getConversionService, getExpression, getIntegrationProperties, getIntegrationProperty, getMessageBuilderFactory, getTaskScheduler, isInitialized, setApplicationContext, setBeanFactory, setBeanName, setChannelResolver, setComponentName, setConversionService, setMessageBuilderFactory, setPrimaryExpression, setTaskScheduler, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetBeanName, getComponentNamepublic ImapIdleChannelAdapter(ImapMailReceiver mailReceiver)
public void setTransactionSynchronizationFactory(TransactionSynchronizationFactory transactionSynchronizationFactory)
public void setSendingTaskExecutor(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.shouldReconnectAutomatically - true to reconnect.public void setReconnectDelay(long reconnectDelay)
reconnectDelay - the reconnectDelay to setpublic String getComponentType()
IntegrationObjectSupportgetComponentType in interface NamedComponentgetComponentType in class IntegrationObjectSupportpublic void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader in interface BeanClassLoaderAwarepublic void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher in interface ApplicationEventPublisherAwareprotected void doStart()
MessageProducerSupportdoStart in class MessageProducerSupportprotected void doStop()
MessageProducerSupportdoStop in class MessageProducerSupportpublic void destroy()
destroy in interface DisposableBeandestroy in class AbstractEndpoint