public interface SingleAsyncOperation extends Serializable
| 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.
|
void performSingleOperation(CacheWriter cacheWriter) throws ClassNotFoundException, IOException
cacheWriter - the cache writer this operation should be performed uponClassNotFoundExceptionIOExceptionObject getKey()
Element getElement()
long getCreationTime()
void throwAwayElement(CacheWriter cacheWriter, RuntimeException e)
cacheWriter - e - Copyright © 2003–2024 Terracotta, Inc.. All rights reserved.