|
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.WriteOperation
public class WriteOperation
Implements the write operation for write behind
| Constructor Summary | |
|---|---|
WriteOperation(Element element)
Create a new write operation for a particular element |
|
WriteOperation(Element element,
long creationTime)
Create a new write operation for a particular element 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. |
Element |
getElement()
Retrieves the element 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 WriteOperation(Element element)
element - the element to write
public WriteOperation(Element element,
long creationTime)
element - the element to writecreationTime - 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<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 Element getElement()
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 | |||||||||