public interface TransactionalCacheWriter<K,V> extends AdvancedCacheWriter<K,V>
AdvancedCacheWriter.PurgeListener<K>| Modifier and Type | Method and Description |
|---|---|
void |
commit(javax.transaction.Transaction transaction)
Commit the provided transaction's changes to the underlying store.
|
void |
prepareWithModifications(javax.transaction.Transaction transaction,
BatchModification batchModification)
Write modifications to the store in the prepare phase, as this is the only way we know the FINAL values of the entries.
|
void |
rollback(javax.transaction.Transaction transaction)
Rollback the provided transaction's changes to the underlying store.
|
clear, purgebulkUpdate, delete, deleteBatch, init, isAvailable, write, write, writeBatchvoid prepareWithModifications(javax.transaction.Transaction transaction,
BatchModification batchModification)
throws PersistenceException
transaction - the current transactional context.batchModification - an object containing the write/remove operations required for this transaction.PersistenceException - if an error occurs when communicating/performing writes on the underlying store.void commit(javax.transaction.Transaction transaction)
transaction - the current transactional context.void rollback(javax.transaction.Transaction transaction)
transaction - the current transactional context.