public static interface MailEndpointBuilderFactory.MailEndpointConsumerBuilder
extends org.apache.camel.builder.EndpointConsumerBuilder
| Modifier and Type | Method and Description |
|---|---|
default MailEndpointBuilderFactory.AdvancedMailEndpointConsumerBuilder |
advanced() |
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
backoffErrorThreshold(int backoffErrorThreshold)
The number of subsequent error polls (failed due some error) that
should happen before the backoffMultipler should kick-in.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
backoffErrorThreshold(String backoffErrorThreshold)
The number of subsequent error polls (failed due some error) that
should happen before the backoffMultipler should kick-in.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
backoffIdleThreshold(int backoffIdleThreshold)
The number of subsequent idle polls that should happen before the
backoffMultipler should kick-in.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
backoffIdleThreshold(String backoffIdleThreshold)
The number of subsequent idle polls that should happen before the
backoffMultipler should kick-in.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
backoffMultiplier(int backoffMultiplier)
To let the scheduled polling consumer backoff if there has been a
number of subsequent idles/errors in a row.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
backoffMultiplier(String backoffMultiplier)
To let the scheduled polling consumer backoff if there has been a
number of subsequent idles/errors in a row.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
bridgeErrorHandler(boolean bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler,
which mean any exceptions occurred while the consumer is trying to
pickup incoming messages, or the likes, will now be processed as a
message and handled by the routing Error Handler.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
bridgeErrorHandler(String bridgeErrorHandler)
Allows for bridging the consumer to the Camel routing Error Handler,
which mean any exceptions occurred while the consumer is trying to
pickup incoming messages, or the likes, will now be processed as a
message and handled by the routing Error Handler.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
closeFolder(boolean closeFolder)
Whether the consumer should close the folder after polling.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
closeFolder(String closeFolder)
Whether the consumer should close the folder after polling.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
copyTo(String copyTo)
After processing a mail message, it can be copied to a mail folder
with the given name.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
decodeFilename(boolean decodeFilename)
If set to true, the MimeUtility.decodeText method will be used to
decode the filename.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
decodeFilename(String decodeFilename)
If set to true, the MimeUtility.decodeText method will be used to
decode the filename.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
delay(long delay)
Milliseconds before the next poll.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
delay(String delay)
Milliseconds before the next poll.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
delete(boolean delete)
Deletes the messages after they have been processed.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
delete(String delete)
Deletes the messages after they have been processed.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
disconnect(boolean disconnect)
Whether the consumer should disconnect after polling.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
disconnect(String disconnect)
Whether the consumer should disconnect after polling.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
greedy(boolean greedy)
If greedy is enabled, then the ScheduledPollConsumer will run
immediately again, if the previous run polled 1 or more messages.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
greedy(String greedy)
If greedy is enabled, then the ScheduledPollConsumer will run
immediately again, if the previous run polled 1 or more messages.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
handleFailedMessage(boolean handleFailedMessage)
If the mail consumer cannot retrieve a given mail message, then this
option allows to handle the caused exception by the consumer's error
handler.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
handleFailedMessage(String handleFailedMessage)
If the mail consumer cannot retrieve a given mail message, then this
option allows to handle the caused exception by the consumer's error
handler.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
idempotentRepository(org.apache.camel.spi.IdempotentRepository idempotentRepository)
A pluggable repository org.apache.camel.spi.IdempotentRepository
which allows to cluster consuming from the same mailbox, and let the
repository coordinate whether a mail message is valid for the
consumer to process.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
idempotentRepository(String idempotentRepository)
A pluggable repository org.apache.camel.spi.IdempotentRepository
which allows to cluster consuming from the same mailbox, and let the
repository coordinate whether a mail message is valid for the
consumer to process.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
idempotentRepositoryRemoveOnCommit(boolean idempotentRepositoryRemoveOnCommit)
When using idempotent repository, then when the mail message has been
successfully processed and is committed, should the message id be
removed from the idempotent repository (default) or be kept in the
repository.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
idempotentRepositoryRemoveOnCommit(String idempotentRepositoryRemoveOnCommit)
When using idempotent repository, then when the mail message has been
successfully processed and is committed, should the message id be
removed from the idempotent repository (default) or be kept in the
repository.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
initialDelay(long initialDelay)
Milliseconds before the first poll starts.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
initialDelay(String initialDelay)
Milliseconds before the first poll starts.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
maxMessagesPerPoll(int maxMessagesPerPoll)
Specifies the maximum number of messages to gather per poll.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
maxMessagesPerPoll(String maxMessagesPerPoll)
Specifies the maximum number of messages to gather per poll.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
mimeDecodeHeaders(boolean mimeDecodeHeaders)
This option enables transparent MIME decoding and unfolding for mail
headers.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
mimeDecodeHeaders(String mimeDecodeHeaders)
This option enables transparent MIME decoding and unfolding for mail
headers.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
moveTo(String moveTo)
After processing a mail message, it can be moved to a mail folder
with the given name.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
password(String password)
The password for login.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
peek(boolean peek)
Will mark the javax.mail.Message as peeked before processing the mail
message.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
peek(String peek)
Will mark the javax.mail.Message as peeked before processing the mail
message.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
repeatCount(long repeatCount)
Specifies a maximum limit of number of fires.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
repeatCount(String repeatCount)
Specifies a maximum limit of number of fires.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
The consumer logs a start/complete log line when it polls.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
runLoggingLevel(String runLoggingLevel)
The consumer logs a start/complete log line when it polls.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
Allows for configuring a custom/shared thread pool to use for the
consumer.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
scheduledExecutorService(String scheduledExecutorService)
Allows for configuring a custom/shared thread pool to use for the
consumer.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
scheduler(Object scheduler)
To use a cron scheduler from either camel-spring or camel-quartz
component.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
scheduler(String scheduler)
To use a cron scheduler from either camel-spring or camel-quartz
component.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
schedulerProperties(Map values)
To configure additional properties when using a custom scheduler or
any of the Quartz, Spring based scheduler.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
schedulerProperties(String key,
Object value)
To configure additional properties when using a custom scheduler or
any of the Quartz, Spring based scheduler.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
searchTerm(Map values)
Refers to a javax.mail.search.SearchTerm which allows to filter mails
based on search criteria such as subject, body, from, sent after a
certain date etc.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
searchTerm(String key,
Object value)
Refers to a javax.mail.search.SearchTerm which allows to filter mails
based on search criteria such as subject, body, from, sent after a
certain date etc.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle)
If the polling consumer did not poll any files, you can enable this
option to send an empty message (no body) instead.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle)
If the polling consumer did not poll any files, you can enable this
option to send an empty message (no body) instead.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
skipFailedMessage(boolean skipFailedMessage)
If the mail consumer cannot retrieve a given mail message, then this
option allows to skip the message and move on to retrieve the next
mail message.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
skipFailedMessage(String skipFailedMessage)
If the mail consumer cannot retrieve a given mail message, then this
option allows to skip the message and move on to retrieve the next
mail message.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
sortTerm(Object[] sortTerm)
Sorting order for messages.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
sortTerm(String sortTerm)
Sorting order for messages.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
sslContextParameters(Object sslContextParameters)
To configure security using SSLContextParameters.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
sslContextParameters(String sslContextParameters)
To configure security using SSLContextParameters.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
startScheduler(boolean startScheduler)
Whether the scheduler should be auto started.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
startScheduler(String startScheduler)
Whether the scheduler should be auto started.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
timeUnit(String timeUnit)
Time unit for initialDelay and delay options.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
timeUnit(TimeUnit timeUnit)
Time unit for initialDelay and delay options.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
unseen(boolean unseen)
Whether to limit by unseen mails only.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
unseen(String unseen)
Whether to limit by unseen mails only.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
useFixedDelay(boolean useFixedDelay)
Controls if fixed delay or fixed rate is used.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
useFixedDelay(String useFixedDelay)
Controls if fixed delay or fixed rate is used.
|
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder |
username(String username)
The username for login.
|
default MailEndpointBuilderFactory.AdvancedMailEndpointConsumerBuilder advanced()
default MailEndpointBuilderFactory.MailEndpointConsumerBuilder bridgeErrorHandler(boolean bridgeErrorHandler)
bridgeErrorHandler - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder bridgeErrorHandler(String bridgeErrorHandler)
bridgeErrorHandler - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder closeFolder(boolean closeFolder)
closeFolder - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder closeFolder(String closeFolder)
closeFolder - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder copyTo(String copyTo)
copyTo - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder decodeFilename(boolean decodeFilename)
decodeFilename - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder decodeFilename(String decodeFilename)
decodeFilename - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder delete(boolean delete)
delete - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder delete(String delete)
delete - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder disconnect(boolean disconnect)
disconnect - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder disconnect(String disconnect)
disconnect - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder handleFailedMessage(boolean handleFailedMessage)
handleFailedMessage - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder handleFailedMessage(String handleFailedMessage)
handleFailedMessage - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder maxMessagesPerPoll(int maxMessagesPerPoll)
maxMessagesPerPoll - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder maxMessagesPerPoll(String maxMessagesPerPoll)
maxMessagesPerPoll - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder mimeDecodeHeaders(boolean mimeDecodeHeaders)
mimeDecodeHeaders - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder mimeDecodeHeaders(String mimeDecodeHeaders)
mimeDecodeHeaders - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder moveTo(String moveTo)
moveTo - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder peek(boolean peek)
peek - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder peek(String peek)
peek - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder sendEmptyMessageWhenIdle(boolean sendEmptyMessageWhenIdle)
sendEmptyMessageWhenIdle - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder sendEmptyMessageWhenIdle(String sendEmptyMessageWhenIdle)
sendEmptyMessageWhenIdle - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder skipFailedMessage(boolean skipFailedMessage)
skipFailedMessage - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder skipFailedMessage(String skipFailedMessage)
skipFailedMessage - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder unseen(boolean unseen)
unseen - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder unseen(String unseen)
unseen - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder idempotentRepository(org.apache.camel.spi.IdempotentRepository idempotentRepository)
idempotentRepository - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder idempotentRepository(String idempotentRepository)
idempotentRepository - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder idempotentRepositoryRemoveOnCommit(boolean idempotentRepositoryRemoveOnCommit)
idempotentRepositoryRemoveOnCommit - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder idempotentRepositoryRemoveOnCommit(String idempotentRepositoryRemoveOnCommit)
idempotentRepositoryRemoveOnCommit - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder searchTerm(String key, Object value)
key - the option keyvalue - the option valuedefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder searchTerm(Map values)
values - the valuesdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder backoffErrorThreshold(int backoffErrorThreshold)
backoffErrorThreshold - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder backoffErrorThreshold(String backoffErrorThreshold)
backoffErrorThreshold - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder backoffIdleThreshold(int backoffIdleThreshold)
backoffIdleThreshold - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder backoffIdleThreshold(String backoffIdleThreshold)
backoffIdleThreshold - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder backoffMultiplier(int backoffMultiplier)
backoffMultiplier - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder backoffMultiplier(String backoffMultiplier)
backoffMultiplier - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder delay(long delay)
delay - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder delay(String delay)
delay - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder greedy(boolean greedy)
greedy - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder greedy(String greedy)
greedy - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder initialDelay(long initialDelay)
initialDelay - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder initialDelay(String initialDelay)
initialDelay - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder repeatCount(long repeatCount)
repeatCount - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder repeatCount(String repeatCount)
repeatCount - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder runLoggingLevel(org.apache.camel.LoggingLevel runLoggingLevel)
runLoggingLevel - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder runLoggingLevel(String runLoggingLevel)
runLoggingLevel - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder scheduledExecutorService(ScheduledExecutorService scheduledExecutorService)
scheduledExecutorService - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder scheduledExecutorService(String scheduledExecutorService)
scheduledExecutorService - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder scheduler(Object scheduler)
scheduler - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder scheduler(String scheduler)
scheduler - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder schedulerProperties(String key, Object value)
key - the option keyvalue - the option valuedefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder schedulerProperties(Map values)
values - the valuesdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder startScheduler(boolean startScheduler)
startScheduler - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder startScheduler(String startScheduler)
startScheduler - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder timeUnit(TimeUnit timeUnit)
timeUnit - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder timeUnit(String timeUnit)
timeUnit - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder useFixedDelay(boolean useFixedDelay)
useFixedDelay - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder useFixedDelay(String useFixedDelay)
useFixedDelay - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder password(String password)
password - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder sslContextParameters(Object sslContextParameters)
sslContextParameters - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder sslContextParameters(String sslContextParameters)
sslContextParameters - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder username(String username)
username - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder sortTerm(Object[] sortTerm)
sortTerm - the value to setdefault MailEndpointBuilderFactory.MailEndpointConsumerBuilder sortTerm(String sortTerm)
sortTerm - the value to setApache Camel