|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
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<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. |
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<SingleOperation<K,V>> operations)
SingleOperation
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 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 | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |