public interface ScriptLoadingExecutor extends Executor
ScriptLoaders.| Modifier and Type | Method and Description |
|---|---|
AutoCloseable |
scheduleAtFixedRate(Runnable task,
long time,
TimeUnit unit)
Schedules a task to run at a fixed rate, with the first execution
occurring with no delay.
|
static ScriptLoadingExecutor |
usingJavaScheduler(ScheduledExecutorService service)
Creates a
ScriptLoadingExecutor using a java executor service |
static ScriptLoadingExecutor usingJavaScheduler(ScheduledExecutorService service)
ScriptLoadingExecutor using a java executor serviceservice - the serviceAutoCloseable scheduleAtFixedRate(Runnable task, long time, TimeUnit unit)
task - the tasktime - the timeunit - the unit of the timeAutoCloseable, which will cancel the task when
closed.ScheduledExecutorService.scheduleAtFixedRate(Runnable, long, long, TimeUnit)Copyright © 2018. All rights reserved.