Class Pollers
java.lang.Object
org.springframework.integration.dsl.Pollers
public final class Pollers extends Object
An utility class to provide
PollerSpec
s for
PollerMetadata
configuration
variants.- Since:
- 5.0
- Author:
- Artem Bilan, Gary Russell
-
Method Summary
Modifier and Type Method Description static PollerSpec
cron(String cronExpression)
static PollerSpec
cron(String cronExpression, TimeZone timeZone)
static PollerSpec
fixedDelay(long period)
static PollerSpec
fixedDelay(long period, long initialDelay)
static PollerSpec
fixedDelay(long period, TimeUnit timeUnit)
static PollerSpec
fixedDelay(long period, TimeUnit timeUnit, long initialDelay)
static PollerSpec
fixedDelay(Duration period)
static PollerSpec
fixedDelay(Duration period, Duration initialDelay)
static PollerSpec
fixedRate(long period)
static PollerSpec
fixedRate(long period, long initialDelay)
static PollerSpec
fixedRate(long period, TimeUnit timeUnit)
static PollerSpec
fixedRate(long period, TimeUnit timeUnit, long initialDelay)
static PollerSpec
fixedRate(Duration period)
static PollerSpec
fixedRate(Duration period, Duration initialDelay)
static PollerSpec
trigger(Trigger trigger)