@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 |
---|---|
String |
cron |
String |
fixedDelay |
String |
fixedRate |
String |
maxMessagesPerPoll |
String |
taskExecutor |
String |
trigger |
String |
value |
public abstract String value
PollerMetadata
bean name.public abstract String taskExecutor
TaskExecutor
bean name.public abstract String maxMessagesPerPoll
${poller.maxMessagesPerPoll}
.public abstract String fixedDelay
PeriodicTrigger
.
Can be specified as 'property placeholder', e.g. ${poller.fixedDelay}
.public abstract String fixedRate
PeriodicTrigger
with fixedRate
.
Can be specified as 'property placeholder', e.g. ${poller.fixedRate}
.public abstract String cron
CronTrigger
.
Can be specified as 'property placeholder', e.g. ${poller.cron}
.