Class Pollers
java.lang.Object
org.springframework.integration.dsl.Pollers
A utility class to provide 
PollerSpecs for
 PollerMetadata configuration
 variants.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
- 
Method SummaryModifier and TypeMethodDescriptionstatic PollerSpecCreate aPollerSpecbased on the provided cron expression.static PollerSpecCreate aPollerSpecbased on the provided cron expression andTimeZone.static PollerSpecfixedDelay(long period) Create aPollerSpecbased on the provided fixed delay period.static PollerSpecfixedDelay(long period, long initialDelay) Create aPollerSpecbased on the provided fixed delay period and initial delay.static PollerSpecfixedDelay(Duration period) Create aPollerSpecbased on the provided fixed delay period.static PollerSpecfixedDelay(Duration period, Duration initialDelay) Create aPollerSpecbased on the provided fixed delay period and initial delay.static PollerSpecfixedRate(long period) Create aPollerSpecbased on the provided fixed rate period.static PollerSpecfixedRate(long period, long initialDelay) Create aPollerSpecbased on the provided fixed rate period and initial delay.static PollerSpecCreate aPollerSpecbased on the provided fixed rate period.static PollerSpecCreate aPollerSpecbased on the provided fixed rate period and initial delay.static PollerSpecCreate aPollerSpecbased on the providedTrigger.
- 
Method Details- 
fixedRateCreate aPollerSpecbased on the provided fixed rate period. The "fixed rate" means that periodic interval should be measured between the scheduled start times rather than between actual completion times.- Parameters:
- period- the fixed rate period (in milliseconds) to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
fixedRateCreate aPollerSpecbased on the provided fixed rate period. The "fixed rate" means that periodic interval should be measured between the scheduled start times rather than between actual completion times.- Parameters:
- period- the fixed rate period to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
fixedRateCreate aPollerSpecbased on the provided fixed rate period and initial delay. The "fixed rate" means that periodic interval should be measured between the scheduled start times rather than between actual completion times.- Parameters:
- period- the fixed rate period to use.
- initialDelay- the initial delay to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
fixedRateCreate aPollerSpecbased on the provided fixed rate period and initial delay. The "fixed rate" means that periodic interval should be measured between the scheduled start times rather than between actual completion times.- Parameters:
- period- the fixed rate period to use.
- initialDelay- the initial delay to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
fixedDelayCreate aPollerSpecbased on the provided fixed delay period. The "fixed delay" means that periodic interval should be measured between the scheduled tasks actual completion times.- Parameters:
- period- the fixed delay period to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
fixedDelayCreate aPollerSpecbased on the provided fixed delay period. The "fixed delay" means that periodic interval should be measured between the scheduled tasks actual completion times.- Parameters:
- period- the fixed delay period to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
fixedDelayCreate aPollerSpecbased on the provided fixed delay period and initial delay. The "fixed delay" means that periodic interval should be measured between the scheduled tasks actual completion times.- Parameters:
- period- the fixed delay period to use.
- initialDelay- the initial delay to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
fixedDelayCreate aPollerSpecbased on the provided fixed delay period and initial delay. The "fixed delay" means that periodic interval should be measured between the scheduled tasks actual completion times.- Parameters:
- period- the fixed delay period to use.
- initialDelay- the initial delay to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
cronCreate aPollerSpecbased on the provided cron expression.- Parameters:
- cronExpression- the cron to use.
- Returns:
- the PollerSpec
- See Also:
 
- 
cronCreate aPollerSpecbased on the provided cron expression andTimeZone.- Parameters:
- cronExpression- the cron to use.
- timeZone- the- TimeZoneto use.
- Returns:
- the PollerSpec
- See Also:
 
- 
triggerCreate aPollerSpecbased on the providedTrigger.- Parameters:
- trigger- the- Triggerto use.
- Returns:
- the PollerSpec
- See Also:
 
 
-