Class PollerFactory
java.lang.Object
org.springframework.integration.dsl.PollerFactory
An
Adapter
class for the Pollers
factory.
Typically used with a Java 8 Lambda expression:
c -> c.poller(p -> p.fixedRate(100))
- Since:
- 5.0
- Author:
- Artem Bilan
-
Method Summary
Modifier and TypeMethodDescriptionCreate aPollerSpec
based on the provided cron expression.Create aPollerSpec
based on the provided cron expression andTimeZone
.fixedDelay
(long period) Create aPollerSpec
based on the provided fixed delay period.fixedDelay
(long period, long initialDelay) Create aPollerSpec
based on the provided fixed delay period and initial delay.static PollerSpec
fixedDelay
(Duration period) Create aPollerSpec
based on the provided fixed delay period.static PollerSpec
fixedDelay
(Duration period, Duration initialDelay) Create aPollerSpec
based on the provided fixed delay period and initial delay .fixedRate
(long period) Create aPollerSpec
based on the provided fixed rate period.fixedRate
(long period, long initialDelay) Create aPollerSpec
based on the provided fixed rate period and initial delay.static PollerSpec
Create aPollerSpec
based on the provided fixed rate period.static PollerSpec
Create aPollerSpec
based on the provided fixed rate period and initial delay .Create aPollerSpec
based on the providedTrigger
.
-
Method Details
-
trigger
Create aPollerSpec
based on the providedTrigger
.- Parameters:
trigger
- theTrigger
to use.- Returns:
- the
PollerSpec
- See Also:
-
cron
Create aPollerSpec
based on the provided cron expression.- Parameters:
cronExpression
- the cron to use.- Returns:
- the
PollerSpec
- See Also:
-
cron
Create aPollerSpec
based on the provided cron expression andTimeZone
.- Parameters:
cronExpression
- the cron to use.timeZone
- theTimeZone
to use.- Returns:
- the
PollerSpec
- See Also:
-
fixedRate
Create aPollerSpec
based on the provided fixed rate period.- Parameters:
period
- the fixed rate period to use.- Returns:
- the
PollerSpec
- See Also:
-
fixedRate
Create aPollerSpec
based on the provided fixed rate period.- Parameters:
period
- the fixed rate period to use.- Returns:
- the
PollerSpec
- Since:
- 6.1
- See Also:
-
fixedRate
Create aPollerSpec
based on the provided fixed rate period and initial delay.- Parameters:
period
- the fixed rate period (in milliseconds) to use.initialDelay
- the initial delay (in milliseconds) to use.- Returns:
- the
PollerSpec
- See Also:
-
fixedRate
Create aPollerSpec
based on the provided fixed rate period and initial delay .- Parameters:
period
- the fixed rate period to use.initialDelay
- the initial delay to use.- Returns:
- the
PollerSpec
- Since:
- 6.1
- See Also:
-
fixedDelay
Create aPollerSpec
based on the provided fixed delay period and initial delay.- Parameters:
period
- the fixed delay period (in milliseconds) to use.initialDelay
- the initial delay (in milliseconds) to use.- Returns:
- the
PollerSpec
- See Also:
-
fixedDelay
Create aPollerSpec
based on the provided fixed delay period.- Parameters:
period
- the fixed delay period to use.- Returns:
- the
PollerSpec
- See Also:
-
fixedDelay
Create aPollerSpec
based on the provided fixed delay period.- Parameters:
period
- the fixed delay period to use.- Returns:
- the
PollerSpec
- Since:
- 6.1
- See Also:
-
fixedDelay
Create aPollerSpec
based on the provided fixed delay period and initial delay .- Parameters:
period
- the fixed delay period to use.initialDelay
- the initial delay to use.- Returns:
- the
PollerSpec
- Since:
- 6.1
- See Also:
-