- Enclosing class:
public static interface SingletonTask.Worker
CompletableFuture<?> work()Executes a unit of work.
If there is no work to do, this shouldn't do anything.
- A future completing when the executor is allowed to call this method again.
void complete()Executes any outstanding operation, or schedule their execution.
Called when the worker is not expected to work in the foreseeable future.