java.lang.AutoCloseable
public interface WriteThruProvider
extends java.lang.AutoCloseable
Modifier and Type | Method | Description |
---|---|---|
void |
init(java.util.Map<java.lang.String,java.lang.String> parameters,
java.lang.String cacheId) |
Perform tasks like allocating resources or acquiring connections etc.
|
java.util.Collection<OperationResult> |
writeDataStructureToDataSource(java.util.Collection<DataStructureWriteOperation> dataStructureWriteOperations) |
When collection is created,removed or any operation is performed on its items with data source enabled this method will be called.
|
OperationResult |
writeToDataSource(WriteOperation operation) |
Responsible for atomic write operations on data source.
|
java.util.Collection<OperationResult> |
writeToDataSource(java.util.Collection<WriteOperation> operations) |
Responsible for bulk write operations on data source.
|
void init(java.util.Map<java.lang.String,java.lang.String> parameters, java.lang.String cacheId) throws java.lang.Exception
parameters
- Startup parameters defined in the configurationcacheId
- Id of the Cachejava.lang.Exception
OperationResult writeToDataSource(WriteOperation operation) throws java.lang.Exception
operation
- write operation applied on data sourceOperationResult
instance.java.lang.Exception
java.util.Collection<OperationResult> writeToDataSource(java.util.Collection<WriteOperation> operations) throws java.lang.Exception
operations
- collection of write operations applied on data sourceOperationResult
instances.java.lang.Exception
java.util.Collection<OperationResult> writeDataStructureToDataSource(java.util.Collection<DataStructureWriteOperation> dataStructureWriteOperations) throws java.lang.Exception
dataStructureWriteOperations
- collection of DataStructureWriteOperation.OperationResult
instances.java.lang.Exception