public final class CustomScheduledExecutor extends Object
Constructor and Description |
---|
CustomScheduledExecutor(String source,
boolean doKeepAlive) |
Modifier and Type | Method and Description |
---|---|
ScheduledFuture<?> |
schedule(Runnable command,
long delay,
TimeUnit unit) |
ScheduledFuture<?> |
scheduleWithFixedDelay(Runnable command,
long initialDelay,
long delay,
TimeUnit unit) |
void |
shutdownNow() |
Future<?> |
submit(Runnable task) |
public CustomScheduledExecutor(String source, boolean doKeepAlive)
public void shutdownNow()
public ScheduledFuture<?> scheduleWithFixedDelay(Runnable command, long initialDelay, long delay, TimeUnit unit)
public ScheduledFuture<?> schedule(Runnable command, long delay, TimeUnit unit)
Copyright © 2017. All rights reserved.