public class DataOperationOrderer extends Object
Modifier and Type | Class and Description |
---|---|
static class |
DataOperationOrderer.Operation |
Constructor and Description |
---|
DataOperationOrderer() |
Modifier and Type | Method and Description |
---|---|
void |
completeOperation(Object key,
CompletableFuture<DataOperationOrderer.Operation> registeredFuture,
DataOperationOrderer.Operation operation)
Completes a given operation and removes all internal references from the orderer
|
CompletionStage<DataOperationOrderer.Operation> |
orderOn(Object key,
CompletionStage<DataOperationOrderer.Operation> register)
Registers the provided Stage to be next in line to do an operation on behalf of the provided key.
|
public CompletionStage<DataOperationOrderer.Operation> orderOn(Object key, CompletionStage<DataOperationOrderer.Operation> register)
key
- delineating identifier for an operationregister
- stage to register for others to wait upon for future registrationspublic void completeOperation(Object key, CompletableFuture<DataOperationOrderer.Operation> registeredFuture, DataOperationOrderer.Operation operation)
key
- delineating identifier for an operationregisteredFuture
- previously registered future that is removed from memory as neededoperation
- the type of operationCopyright © 2021 JBoss by Red Hat. All rights reserved.