org.ehcache.loaderwriter.writebehind.operations
Interface SingleOperation<K,V>
- All Superinterfaces:
- KeyBasedOperation<K>
- All Known Implementing Classes:
- DeleteOperation, WriteOperation
public interface SingleOperation<K,V>
- extends KeyBasedOperation<K>
performSingleOperation
void performSingleOperation(CacheLoaderWriter<K,V> cacheLoaderWriter)
throws java.lang.Exception
- Perform this operation as a single execution with the provided cache writer
- Throws:
java.lang.Exception
createBatchOperation
BatchOperation<K,V> createBatchOperation(java.util.List<? extends SingleOperation<K,V>> 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
CacheWriter
that will be used to execute the batch operation.