public final class DefaultScheduler extends Object
Modifier and Type | Field and Description |
---|---|
static ScheduledExecutorService |
INSTANCE |
static com.google.common.util.concurrent.ListeningScheduledExecutorService |
LISTENABLE_INSTANCE |
Modifier and Type | Method and Description |
---|---|
static ScheduledExecutorService |
instance() |
static com.google.common.util.concurrent.ListeningScheduledExecutorService |
listenableInstance() |
static ScheduledFuture<?> |
scheduleAllignedAtFixedRateMillis(Runnable command,
long millisInterval)
this will schedule a runnable aligned to the hour or day at a fixed rate.
|
public static final ScheduledExecutorService INSTANCE
public static final com.google.common.util.concurrent.ListeningScheduledExecutorService LISTENABLE_INSTANCE
public static ScheduledExecutorService instance()
public static com.google.common.util.concurrent.ListeningScheduledExecutorService listenableInstance()
public static ScheduledFuture<?> scheduleAllignedAtFixedRateMillis(Runnable command, long millisInterval)
command
- - the Runnable to execute.millisInterval
- - the schedule interval in milliseconds.Copyright © 2018 SPF4J. All rights reserved.