public class CommandScheduler extends Object implements net.jodah.failsafe.util.concurrent.Scheduler
| Modifier and Type | Method and Description |
|---|---|
static CommandScheduler |
create()
If no command scheduler exists, creates one using default values.
|
static CommandScheduler |
create(Config config)
If no command scheduler exists, creates one using a config.
|
ScheduledFuture<?> |
schedule(Callable<?> callable,
long delay,
TimeUnit unit)
Schedules a task using executor.
|
public static CommandScheduler create(Config config)
config - Config to use.public static CommandScheduler create()
public ScheduledFuture<?> schedule(Callable<?> callable, long delay, TimeUnit unit)
schedule in interface net.jodah.failsafe.util.concurrent.Schedulercallable - The callable.delay - Delay before scheduling task.unit - Unite of delay.Copyright © 2018–2019 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms.