Class JavaPoolTasksAsync
java.lang.Object
org.projectnessie.nessie.tasks.async.pool.JavaPoolTasksAsync
- All Implemented Interfaces:
TasksAsync
-
Constructor Summary
ConstructorsConstructorDescriptionJavaPoolTasksAsync(ScheduledExecutorService executorService, Clock clock, long minimumDelayMillis) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.projectnessie.nessie.tasks.async.TasksAsync
calculateDelay, call
-
Constructor Details
-
JavaPoolTasksAsync
public JavaPoolTasksAsync(ScheduledExecutorService executorService, Clock clock, long minimumDelayMillis)
-
-
Method Details
-
supply
- Specified by:
supplyin interfaceTasksAsync
-
schedule
Description copied from interface:TasksAsyncSchedule aRunnableto run at the given timestamp.The scheduled task can always be cancelled as long as it is not running via
.CompletionStage.toCompletableFuture().cancel(false);Whether an already running task can be interrupted is not guaranteed and depends on the implementation. It is highly recommended to not assume that a running task can be interrupted.
- Specified by:
schedulein interfaceTasksAsync
-
clock
- Specified by:
clockin interfaceTasksAsync
-