public class DeleteOperation extends Object implements SingleOperation
| Constructor and Description |
|---|
DeleteOperation(CacheEntry entry)
Create a new delete operation for a particular entry
|
DeleteOperation(CacheEntry entry,
long creationTime)
Create a new delete operation for a particular entry and creation time
|
| Modifier and Type | Method and Description |
|---|---|
BatchOperation |
createBatchOperation(List<SingleOperation> operations)
Creates a batch operation that corresponds to the operation type of this single operation.
|
boolean |
equals(Object other) |
long |
getCreationTime()
Retrieves the moment when the operation was created.
|
CacheEntry |
getEntry()
Retrieves the entry that will be used for this operation
|
Object |
getKey()
Retrieves the element key for this operation.
|
SingleOperationType |
getType()
Returns a stable identifier for the type this operation can be classified in.
|
int |
hashCode() |
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
|
public DeleteOperation(CacheEntry entry)
entry - the entry to deletepublic DeleteOperation(CacheEntry entry, long creationTime)
entry - the entry to deletecreationTime - the creation time of the operationpublic void performSingleOperation(CacheWriter cacheWriter)
performSingleOperation in interface SingleOperationcacheWriter - the cache writer this operation should be performed uponpublic BatchOperation createBatchOperation(List<SingleOperation> operations)
CacheWriter that will be used to execute the batch operation.createBatchOperation in interface SingleOperationoperations - the single operations that need to be regrouped in the batch operationpublic Object getKey()
getKey in interface KeyBasedOperationpublic long getCreationTime()
getCreationTime in interface KeyBasedOperationpublic CacheEntry getEntry()
public SingleOperationType getType()
getType in interface SingleOperationpublic void throwAway(CacheWriter cacheWriter, RuntimeException e)
throwAway in interface SingleOperationcacheWriter - the CacheWriter to delegate toe - the last exception encounteredCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.