|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.writer.writebehind.operations.DeleteOperation
public class DeleteOperation
Implements the delete operation for write behind
| Constructor Summary | |
|---|---|
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 |
|
| Method Summary | |
|---|---|
BatchOperation |
createBatchOperation(List<? extends 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DeleteOperation(CacheEntry entry)
entry - the entry to delete
public DeleteOperation(CacheEntry entry,
long creationTime)
entry - the entry to deletecreationTime - the creation time of the operation| Method Detail |
|---|
public void performSingleOperation(CacheWriter cacheWriter)
performSingleOperation in interface SingleOperationcacheWriter - the cache writer this operation should be performed uponpublic BatchOperation createBatchOperation(List<? extends 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 operation
public Object getKey()
getKey in interface KeyBasedOperationpublic long getCreationTime()
getCreationTime in interface KeyBasedOperationpublic CacheEntry getEntry()
public SingleOperationType getType()
getType in interface SingleOperation
public void throwAway(CacheWriter cacheWriter,
RuntimeException e)
throwAway in interface SingleOperationcacheWriter - the CacheWriter to delegate toe - the last exception encounteredpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object other)
equals in class Object
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||