public static interface SingletonTask.Worker
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Executes any outstanding operation, or schedule their execution.
|
CompletableFuture<?> |
work()
Executes a unit of work.
|
CompletableFuture<?> work()
If there is no work to do, this shouldn't do anything.
void complete()
Called when the worker is not expected to work in the foreseeable future.
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.