public class WriteAsyncOperation extends Object implements SingleAsyncOperation
| Constructor and Description |
|---|
WriteAsyncOperation(Element snapshot) |
WriteAsyncOperation(Element snapshot,
long creationTime) |
| Modifier and Type | Method and Description |
|---|---|
long |
getCreationTime()
Retrieves the moment when the operation was created.
|
Element |
getElement() |
Object |
getKey()
Retrieves the key for this operation.
|
void |
performSingleOperation(CacheWriter cacheWriter)
Perform this operation as a single execution with the provided cache writer
|
void |
throwAwayElement(CacheWriter cacheWriter,
RuntimeException e)
This method will be called to throw the item away.
|
public WriteAsyncOperation(Element snapshot)
public WriteAsyncOperation(Element snapshot, long creationTime)
public Element getElement()
getElement in interface SingleAsyncOperationpublic void performSingleOperation(CacheWriter cacheWriter)
SingleAsyncOperationperformSingleOperation in interface SingleAsyncOperationcacheWriter - the cache writer this operation should be performed uponpublic Object getKey()
SingleAsyncOperationgetKey in interface SingleAsyncOperationpublic long getCreationTime()
SingleAsyncOperationgetCreationTime in interface SingleAsyncOperationpublic void throwAwayElement(CacheWriter cacheWriter, RuntimeException e)
SingleAsyncOperationthrowAwayElement in interface SingleAsyncOperationCopyright © 2003–2024 Terracotta, Inc.. All rights reserved.