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 aPollerSpecbased on the provided cron expression.Create aPollerSpecbased on the provided cron expression andTimeZone.fixedDelay(long period) Create aPollerSpecbased on the provided fixed delay period.fixedDelay(long period, long initialDelay) Create aPollerSpecbased on the provided fixed delay period and initial delay.fixedDelay(long period, TimeUnit timeUnit) Deprecated, for removal: This API element is subject to removal in a future version.fixedDelay(long period, TimeUnit timeUnit, long initialDelay) Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 in favor offixedDelay(Duration, Duration)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 .fixedRate(long period) Create aPollerSpecbased on the provided fixed rate period.fixedRate(long period, long initialDelay) Create aPollerSpecbased on the provided fixed rate period and initial delay.Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 in favor offixedRate(Duration)Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 in favor offixedRate(Duration, Duration)static PollerSpecCreate aPollerSpecbased on the provided fixed rate period.static PollerSpecCreate aPollerSpecbased on the provided fixed rate period and initial delay .Create aPollerSpecbased on the providedTrigger.
-
Method Details
-
trigger
Create aPollerSpecbased on the providedTrigger.- Parameters:
trigger- theTriggerto use.- Returns:
- the
PollerSpec - See Also:
-
cron
Create aPollerSpecbased on the provided cron expression.- Parameters:
cronExpression- the cron to use.- Returns:
- the
PollerSpec - See Also:
-
cron
Create aPollerSpecbased on the provided cron expression andTimeZone.- Parameters:
cronExpression- the cron to use.timeZone- theTimeZoneto use.- Returns:
- the
PollerSpec - See Also:
-
fixedRate
Create aPollerSpecbased on the provided fixed rate period.- Parameters:
period- the fixed rate period to use.- Returns:
- the
PollerSpec - See Also:
-
fixedRate
Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 in favor offixedRate(Duration)Create aPollerSpecbased on the provided fixed rate period andTimeUnit.- Parameters:
period- the fixed rate period to use.timeUnit- theTimeUnitto use.- Returns:
- the
PollerSpec - See Also:
-
fixedRate
Create aPollerSpecbased on the provided fixed rate period.- Parameters:
period- the fixed rate period to use.- Returns:
- the
PollerSpec - Since:
- 6.1
- See Also:
-
fixedRate
Create aPollerSpecbased 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 aPollerSpecbased 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:
-
fixedRate
@Deprecated(forRemoval=true) public PollerSpec fixedRate(long period, TimeUnit timeUnit, long initialDelay) Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 in favor offixedRate(Duration, Duration)Create aPollerSpecbased on the provided fixed rate period andTimeUnitwith an initial delay.- Parameters:
period- the fixed rate period to use.timeUnit- theTimeUnitto use.initialDelay- the initial delay to use.- Returns:
- the
PollerSpec - See Also:
-
fixedDelay
@Deprecated(forRemoval=true) public PollerSpec fixedDelay(long period, TimeUnit timeUnit, long initialDelay) Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 in favor offixedDelay(Duration, Duration)Create aPollerSpecbased on the provided fixed delay period andTimeUnitwith an initial delay.- Parameters:
period- the fixed delay period to use.timeUnit- theTimeUnitto use.initialDelay- the initial delay to use.- Returns:
- the
PollerSpec - See Also:
-
fixedDelay
Deprecated, for removal: This API element is subject to removal in a future version.since 6.1 in favor offixedDelay(Duration)Create aPollerSpecbased on the provided fixed delay period andTimeUnit.- Parameters:
period- the fixed delay period to use.timeUnit- theTimeUnitto use.- Returns:
- the
PollerSpec - See Also:
-
fixedDelay
Create aPollerSpecbased 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 aPollerSpecbased on the provided fixed delay period.- Parameters:
period- the fixed delay period to use.- Returns:
- the
PollerSpec - See Also:
-
fixedDelay
Create aPollerSpecbased on the provided fixed delay period.- Parameters:
period- the fixed delay period to use.- Returns:
- the
PollerSpec - Since:
- 6.1
- See Also:
-
fixedDelay
Create aPollerSpecbased 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:
-
fixedDelay(Duration)