|
||||||||||
| 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 | |
|---|---|
BatchAsyncOperation |
createBatchOperation(List<SingleAsyncOperation> operations,
SerializationStrategy serializationStrategy)
Creates a batch operation that corresponds to the operation type of this single async operation. |
long |
getCreationTime()
Retrieves the moment when the operation was created. |
Object |
getKey(SerializationStrategy serializationStrategy)
Retrieves the key for this operation. |
void |
performSingleOperation(net.sf.ehcache.writer.CacheWriter cacheWriter,
SerializationStrategy serializationStrategy)
Perform this operation as a single execution with the provided cache writer |
| Method Detail |
|---|
void performSingleOperation(net.sf.ehcache.writer.CacheWriter cacheWriter,
SerializationStrategy serializationStrategy)
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
IOException
BatchAsyncOperation createBatchOperation(List<SingleAsyncOperation> operations,
SerializationStrategy serializationStrategy)
throws ClassNotFoundException,
IOException
CacheWriter that will be used to execute the batch operation.
operations - the single operations that need to be regrouped in the batch operationserializationStrategy - the serialization strategy that should be used to create the data for the batch
operation
ClassNotFoundException
IOException
Object getKey(SerializationStrategy serializationStrategy)
throws IOException,
ClassNotFoundException
serializationStrategy - the serialization strategy that should be used to create the key
IOException
ClassNotFoundExceptionlong getCreationTime()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||