public class PollerFactory
extends java.lang.Object
Adapter
class for the Pollers
factory.
Typically used with a Java 8 Lambda expression:
c -> c.poller(p -> p.fixedRate(100))
Modifier and Type | Method and Description |
---|---|
PollerSpec |
cron(java.lang.String cronExpression) |
PollerSpec |
cron(java.lang.String cronExpression,
java.util.TimeZone timeZone) |
PollerSpec |
fixedDelay(long period) |
PollerSpec |
fixedDelay(long period,
long initialDelay) |
PollerSpec |
fixedDelay(long period,
java.util.concurrent.TimeUnit timeUnit) |
PollerSpec |
fixedDelay(long period,
java.util.concurrent.TimeUnit timeUnit,
long initialDelay) |
PollerSpec |
fixedRate(long period) |
PollerSpec |
fixedRate(long period,
long initialDelay) |
PollerSpec |
fixedRate(long period,
java.util.concurrent.TimeUnit timeUnit) |
PollerSpec |
fixedRate(long period,
java.util.concurrent.TimeUnit timeUnit,
long initialDelay) |
PollerSpec |
trigger(org.springframework.scheduling.Trigger trigger) |
public PollerSpec trigger(org.springframework.scheduling.Trigger trigger)
public PollerSpec cron(java.lang.String cronExpression)
public PollerSpec cron(java.lang.String cronExpression, java.util.TimeZone timeZone)
public PollerSpec fixedRate(long period)
public PollerSpec fixedRate(long period, java.util.concurrent.TimeUnit timeUnit)
public PollerSpec fixedRate(long period, long initialDelay)
public PollerSpec fixedDelay(long period, java.util.concurrent.TimeUnit timeUnit, long initialDelay)
public PollerSpec fixedRate(long period, java.util.concurrent.TimeUnit timeUnit, long initialDelay)
public PollerSpec fixedDelay(long period, java.util.concurrent.TimeUnit timeUnit)
public PollerSpec fixedDelay(long period, long initialDelay)
public PollerSpec fixedDelay(long period)