public class WriteAllOperation extends java.lang.Object implements BatchOperation
Modifier and Type | Field and Description |
---|---|
private java.util.List<Element> |
elements |
Constructor and Description |
---|
WriteAllOperation(java.util.List<Element> elements)
Create a new write all operation for the provided list of element
|
Modifier and Type | Method and Description |
---|---|
void |
performBatchOperation(CacheWriter cacheWriter)
Perform the batch operation for a particular batch writer
|
private final java.util.List<Element> elements
public WriteAllOperation(java.util.List<Element> elements)
elements
- the list of elements that are part of this operationpublic void performBatchOperation(CacheWriter cacheWriter)
performBatchOperation
in interface BatchOperation
cacheWriter
- the cache writer this operation should be performed upon