|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SingleAsyncOperation
Interface to implement single operations that are performed in the write behind implementation that using an AsyncCoordinator underneath
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
void performSingleOperation(CacheWriter cacheWriter)
throws ClassNotFoundException,
IOException
cacheWriter - the cache writer this operation should be performed uponserializationStrategy - the strategy that should be used to serialize and deserialize, if needed
ClassNotFoundException
IOExceptionObject getKey()
serializationStrategy - the serialization strategy that should be used to create the key
Element getElement()
long getCreationTime()
void throwAwayElement(CacheWriter cacheWriter,
RuntimeException e)
cacheWriter - serializationStrategy - e -
ClassNotFoundException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||