|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface SingleOperation
Interface to implement single operations that are performed with write-behind
Method Summary | |
---|---|
BatchOperation |
createBatchOperation(List<? extends SingleOperation> operations)
Creates a batch operation that corresponds to the operation type of this single operation. |
SingleOperationType |
getType()
Returns a stable identifier for the type this operation can be classified in. |
void |
performSingleOperation(CacheWriter cacheWriter)
Perform this operation as a single execution with the provided cache writer |
void |
throwAway(CacheWriter cacheWriter,
RuntimeException e)
Called when all retries have failed |
Methods inherited from interface net.sf.ehcache.writer.writebehind.operations.KeyBasedOperation |
---|
getCreationTime, getKey |
Method Detail |
---|
void performSingleOperation(CacheWriter cacheWriter)
cacheWriter
- the cache writer this operation should be performed uponBatchOperation createBatchOperation(List<? extends SingleOperation> operations)
CacheWriter
that will be used to execute the batch operation.
operations
- the single operations that need to be regrouped in the batch operation
SingleOperationType getType()
void throwAway(CacheWriter cacheWriter, RuntimeException e)
cacheWriter
- the CacheWriter to delegate toe
- the last exception encountered
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |