@Target(value={})
@Retention(value=RUNTIME)
public @interface Poller
PollerMetadata options for the Messaging annotations for
polled endpoints.
It is an analogue of the XML <poller/> element, but provides only simple attributes.
If the PollerMetadata requires more options
(e.g. Transactional and other Advices) or initialDelay, receiveTimeout etc,
the PollerMetadata should be configured as
a generic bean and its bean name can be specified as the value attribute of this annotation.
In that case, the other attributes are not allowed.
Non-reference attributes support Property Placeholder resolutions.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
cron |
java.lang.String |
errorChannel |
java.lang.String |
fixedDelay |
java.lang.String |
fixedRate |
java.lang.String |
maxMessagesPerPoll |
java.lang.String |
taskExecutor |
java.lang.String |
trigger |
java.lang.String |
value |
public abstract java.lang.String value
PollerMetadata bean name.public abstract java.lang.String taskExecutor
TaskExecutor bean name.public abstract java.lang.String maxMessagesPerPoll
${poller.maxMessagesPerPoll}.
Defaults to -1 (infinity) for polling consumers and 1 for polling inbound channel adapters.public abstract java.lang.String fixedDelay
PeriodicTrigger.
Can be specified as 'property placeholder', e.g. ${poller.fixedDelay}.public abstract java.lang.String fixedRate
PeriodicTrigger with fixedRate.
Can be specified as 'property placeholder', e.g. ${poller.fixedRate}.