|
|||||||||
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.WriteOperation<K,V>
public class WriteOperation<K,V>
Implements the write operation for write behind
Constructor Summary | |
---|---|
WriteOperation(K k,
V v)
Create a new write operation for a particular element |
|
WriteOperation(K k,
V v,
long creationTime)
Create a new write operation for a particular element and creation time |
Method Summary | |
---|---|
BatchOperation<K,V> |
createBatchOperation(java.util.List<? extends 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. |
V |
getValue()
|
int |
hashCode()
|
void |
performSingleOperation(CacheLoaderWriter<K,V> cacheWriter)
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 WriteOperation(K k, V v)
public WriteOperation(K k, V v, long creationTime)
Method Detail |
---|
public void performSingleOperation(CacheLoaderWriter<K,V> cacheWriter) throws java.lang.Exception
SingleOperation
performSingleOperation
in interface SingleOperation<K,V>
java.lang.Exception
public BatchOperation<K,V> createBatchOperation(java.util.List<? extends 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 V getValue()
public long getCreationTime()
KeyBasedOperation
getCreationTime
in interface KeyBasedOperation<K>
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 |