|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ehcache.loaderwriter.writebehind.operations.DeleteOperation<K,V>
public class DeleteOperation<K,V>
Implements the delete operation for write behind
Constructor Summary | |
---|---|
DeleteOperation(K key)
Create a new delete operation for a particular entry |
|
DeleteOperation(K key,
long creationTime)
Create a new delete operation for a particular entry and creation time |
Method Summary | |
---|---|
BatchOperation<K,V> |
createBatchOperation(java.util.List<SingleOperation<K,V>> operations)
Creates a batch operation that corresponds to the operation type of this single operation. |
boolean |
equals(java.lang.Object other)
|
long |
getCreationTime()
Retrieves the moment when the operation was created. |
K |
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(CacheLoaderWriter<K,V> cacheLoaderWriter)
Perform this operation as a single execution with the provided cache writer |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DeleteOperation(K key)
public DeleteOperation(K key, long creationTime)
Method Detail |
---|
public void performSingleOperation(CacheLoaderWriter<K,V> cacheLoaderWriter) throws java.lang.Exception
SingleOperation
performSingleOperation
in interface SingleOperation<K,V>
java.lang.Exception
public BatchOperation<K,V> createBatchOperation(java.util.List<SingleOperation<K,V>> operations)
SingleOperation
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.
createBatchOperation
in interface SingleOperation<K,V>
public K getKey()
KeyBasedOperation
getKey
in interface KeyBasedOperation<K>
public long getCreationTime()
KeyBasedOperation
getCreationTime
in interface KeyBasedOperation<K>
public SingleOperationType getType()
SingleOperation
getType
in interface SingleOperation<K,V>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |