public interface BatchedWorkProcessor
BatchingExecutor.BatchingExecutor| Modifier and Type | Method and Description |
|---|---|
void |
beginBatch()
Initializes internal state before works are submitted.
|
void |
complete()
Executes any outstanding operation, or schedule their execution.
|
CompletableFuture<?> |
endBatch()
Ensures all works submitted
since the last call to
beginBatch()
will actually be executed, along with any finishing task (commit, ...). |
void beginBatch()
CompletableFuture<?> endBatch()
beginBatch()
will actually be executed, along with any finishing task (commit, ...).void complete()
Called when the executor considers the work queue complete and does not plan on submitting another batch due to work starvation.
Copyright © 2006-2020 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.