public class OperationCollector extends Object implements ErrorHandler.RollbackContext
Implements the error handler context interfaces directly as far as possible in order to avoid allocation of intermediary objects.
| Constructor and Description |
|---|
OperationCollector(ErrorHandler errorHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAppliedOperation(GridDialectOperation operation) |
List<GridDialectOperation> |
getAppliedGridDialectOperations()
The operations successfully applied to the datastore before the rollback attempt was made.
|
ErrorHandlingStrategy |
onFailedOperation(GridDialectOperation operation,
Exception exception) |
public OperationCollector(ErrorHandler errorHandler)
public void addAppliedOperation(GridDialectOperation operation)
public ErrorHandlingStrategy onFailedOperation(GridDialectOperation operation, Exception exception)
public List<GridDialectOperation> getAppliedGridDialectOperations()
ErrorHandler.RollbackContextgetAppliedGridDialectOperations in interface ErrorHandler.RollbackContextCopyright © 2010-2017 Red Hat, Inc., Emmanuel Bernard and various contributors. All Rights Reserved.