public class DeleteAsyncOperation extends Object implements SingleAsyncOperation
| Constructor and Description |
|---|
DeleteAsyncOperation(Object keySnapshot,
Element elementSnapshot) |
DeleteAsyncOperation(Object keySnapshot,
Element elementSnapshot,
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 void performSingleOperation(CacheWriter cacheWriter)
SingleAsyncOperationperformSingleOperation in interface SingleAsyncOperationcacheWriter - the cache writer this operation should be performed uponpublic Object getKey()
SingleAsyncOperationgetKey in interface SingleAsyncOperationpublic Element getElement()
getElement 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.