Uses of Class
org.springframework.integration.mail.dsl.ImapIdleChannelAdapterSpec
Package
Description
Provides Mail Components for the Java DSL.
-
Uses of ImapIdleChannelAdapterSpec in org.springframework.integration.mail.dsl
Modifier and TypeMethodDescriptionImapIdleChannelAdapterSpec.adviceChain
(Advice... adviceChain) Configure a chain ofAdvice
objects for message delivery, applied to the downstream flow.ImapIdleChannelAdapterSpec.autoCloseFolder
(boolean autoCloseFolder) When configured tofalse
, the folder is not closed automatically after a fetch.ImapIdleChannelAdapterSpec.cancelIdleInterval
(long interval) How often to recycle the idle task (in case of a silently dropped connection).ImapIdleChannelAdapterSpec.embeddedPartsAsBytes
(boolean embeddedPartsAsBytes) ImapIdleChannelAdapterSpec.headerMapper
(HeaderMapper<MimeMessage> headerMapper) Set the header mapper; if a header mapper is not provided, the message payload is aMimeMessage
, when provided, the headers are mapped and the payload is theMimeMessage
content.static ImapIdleChannelAdapterSpec
Mail.imapIdleAdapter()
AnImapIdleChannelAdapterSpec
factory using a defaultImapMailReceiver
.static ImapIdleChannelAdapterSpec
Mail.imapIdleAdapter
(String url) AImapIdleChannelAdapterSpec
factory based on the provided url.static ImapIdleChannelAdapterSpec
Mail.imapIdleAdapter
(ImapMailReceiver imapMailReceiver) AnImapIdleChannelAdapterSpec
factory based on the providedImapMailReceiver
.ImapIdleChannelAdapterSpec.javaMailAuthenticator
(Authenticator javaMailAuthenticator) ImapIdleChannelAdapterSpec.javaMailProperties
(Consumer<PropertiesBuilder> configurer) Configure thejavaMailProperties
by invoking aConsumer
callback which is invoked with aPropertiesBuilder
.ImapIdleChannelAdapterSpec.javaMailProperties
(Properties javaMailProperties) ImapIdleChannelAdapterSpec.maxFetchSize
(int maxFetchSize) ImapIdleChannelAdapterSpec.reconnectDelay
(long reconnectDelay) The time between connection attempts in milliseconds (default 10 seconds).ImapIdleChannelAdapterSpec.searchTermStrategy
(SearchTermStrategy searchTermStrategy) ImapIdleChannelAdapterSpec.selector
(Function<MimeMessage, Boolean> selectorFunction) Configure aFunction
to select messages.ImapIdleChannelAdapterSpec.selectorExpression
(String selectorExpression) Configure a SpEL expression to select messages.ImapIdleChannelAdapterSpec.selectorExpression
(Expression selectorExpression) Configure anExpression
to select messages.A Java MailSession
to use.ImapIdleChannelAdapterSpec.shouldDeleteMessages
(boolean shouldDeleteMessages) ImapIdleChannelAdapterSpec.shouldMarkMessagesAsRead
(boolean shouldMarkMessagesAsRead) ImapIdleChannelAdapterSpec.shouldReconnectAutomatically
(boolean shouldReconnectAutomatically) ImapIdleChannelAdapterSpec.simpleContent
(boolean simpleContent) Determine how the content is rendered.ImapIdleChannelAdapterSpec.transactional()
Specify aTransactionInterceptor
Advice
with defaultPlatformTransactionManager
andDefaultTransactionAttribute
for the downstream flow.ImapIdleChannelAdapterSpec.transactional
(TransactionInterceptor transactionInterceptor) Specify aTransactionInterceptor
Advice
for the downstream flow.ImapIdleChannelAdapterSpec.transactional
(TransactionManager transactionManager) Specify aTransactionInterceptor
Advice
with the providedTransactionManager
and defaultDefaultTransactionAttribute
for the downstream flow.ImapIdleChannelAdapterSpec.transactionSynchronizationFactory
(TransactionSynchronizationFactory transactionSynchronizationFactory) Configure aTransactionSynchronizationFactory
.Set the name of the flag to use to flag messages when the server does not support \Recent but supports user flags; default "spring-integration-mail-adapter".