| Modifier and Type | Method and Description |
|---|---|
| public BatchOperation | Returns: the created batch operationthe single operations that need to be regrouped in the batch operation operations)Creates a batch operation that corresponds to the operation type of this single operation. |
| public SingleOperationType | Returns: the identifier for this operation typeReturns a stable identifier for the type this operation can be classified in. This is used to group and order batched operations. |
| public void | performSingleOperation(CacheWriter
the cache writer this operation should be performed upon cacheWriter)Perform this operation as a single execution with the provided cache writer |
| public void | throwAway(final CacheWriter
the CacheWriter to delegate to cacheWriter, RuntimeException the last exception encountered e)Called when all retries have failed |
| createBatchOperation | back to summary |
|---|---|
| public BatchOperation createBatchOperation(List<? extends SingleOperation> operations) Creates a batch operation that corresponds to the operation type of this single operation.
This batch operation will not be stored in the queue anymore and is solely used for structuring.
The data from the single operation will already be processed in the final form that will be expected by the
| |
| getType | back to summary |
|---|---|
| public SingleOperationType getType() Returns a stable identifier for the type this operation can be classified in. This is used to group and order batched operations.
| |
| performSingleOperation | back to summary |
|---|---|
| public void performSingleOperation(CacheWriter cacheWriter) Perform this operation as a single execution with the provided cache writer
| |
| throwAway | back to summary |
|---|---|
| public void throwAway(final CacheWriter cacheWriter, RuntimeException e) Called when all retries have failed
| |