public class ImapIdleChannelAdapter extends MessageProducerSupport implements BeanClassLoaderAware, ApplicationEventPublisherAware
Message
instance that was received.Modifier and Type | Class and Description |
---|---|
class |
ImapIdleChannelAdapter.ImapIdleExceptionEvent |
lifecycleCondition, lifecycleLock
EXPRESSION_PARSER, logger
DEFAULT_PHASE
Constructor and Description |
---|
ImapIdleChannelAdapter(ImapMailReceiver mailReceiver) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
protected void |
doStart()
Take no action by default.
|
protected void |
doStop()
Take 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, getIntegrationPatternType, getMessagingTemplate, getOutputChannel, onInit, sendErrorMessageIfNecessary, sendMessage, setErrorChannel, setErrorChannelName, setErrorMessageStrategy, setOutputChannel, setOutputChannelName, setSendTimeout, setShouldTrack, subscribeToPublisher
doStop, getPhase, getRole, isAutoStartup, isRunning, setAutoStartup, setPhase, setRole, start, stop, stop
afterPropertiesSet, 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, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getBeanName, getComponentName
public 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()
IntegrationObjectSupport
getComponentType
in interface NamedComponent
getComponentType
in class IntegrationObjectSupport
public void setBeanClassLoader(ClassLoader classLoader)
setBeanClassLoader
in interface BeanClassLoaderAware
public void setApplicationEventPublisher(ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface ApplicationEventPublisherAware
protected void doStart()
MessageProducerSupport
doStart
in class MessageProducerSupport
protected void doStop()
MessageProducerSupport
doStop
in class MessageProducerSupport
public void destroy()
destroy
in interface DisposableBean
destroy
in class AbstractEndpoint