spring-framework / org.springframework.scheduling.support / PeriodicTrigger / <init>

<init>

PeriodicTrigger(period: Long)

Create a trigger with the given period in milliseconds.

PeriodicTrigger(period: Long, @Nullable timeUnit: TimeUnit)

Create a trigger with the given period and time unit. The time unit will apply not only to the period but also to any 'initialDelay' value, if configured on this Trigger later via #setInitialDelay(long).