|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.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<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 deletepublic DeleteOperation(CacheEntry entry, long creationTime)
entry
- the entry to deletecreationTime
- the creation time of the operationMethod Detail |
---|
public void performSingleOperation(CacheWriter cacheWriter)
performSingleOperation
in interface SingleOperation
cacheWriter
- 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 SingleOperation
operations
- the single operations that need to be regrouped in the batch operation
public Object getKey()
getKey
in interface KeyBasedOperation
public long getCreationTime()
getCreationTime
in interface KeyBasedOperation
public CacheEntry getEntry()
public SingleOperationType getType()
getType
in interface SingleOperation
public void throwAway(CacheWriter cacheWriter, RuntimeException e)
throwAway
in interface SingleOperation
cacheWriter
- the CacheWriter to delegate toe
- the last exception encounteredpublic int hashCode()
hashCode
in class Object
public 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 |