public interface TransactionalCacheWriter<K,V> extends AdvancedCacheWriter<K,V>
AdvancedCacheWriter.PurgeListener<K>| Modifier and Type | Method and Description |
|---|---|
void |
commit(Transaction transaction)
Commit the provided transaction's changes to the underlying store.
|
void |
prepareWithModifications(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(Transaction transaction)
Rollback the provided transaction's changes to the underlying store.
|
clear, purgedelete, deleteBatch, init, write, writeBatchvoid prepareWithModifications(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(Transaction transaction)
transaction - the current transactional context.void rollback(Transaction transaction)
transaction - the current transactional context.Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.