Interface TransactionalResourceServicePersistence
- All Known Implementing Classes:
JournalTransactionalResourceServicePersistenceEnvironment
public interface TransactionalResourceServicePersistence
Supplies instances of
ReadOnlyTransaction as well as ReadWriteTransaction for manipulating the
unerlying data storage.-
Method Summary
Modifier and TypeMethodDescriptionStarts building an instance ofReadOnlyTransactionagainst the underlying data store.Starts building an instance ofReadWriteTransactionagainst the underlying data store.Opens aExclusiveReadWriteTransactionwhich will lock the entire underlying data storage such that certain operations may be performed against the whole dataset.
-
Method Details
-
buildRO
Starts building an instance ofReadOnlyTransactionagainst the underlying data store.- Parameters:
nodeId- theNodeIdto use for the transaction context.- Returns:
- the
ReadOnlyTransaction
-
buildRW
Starts building an instance ofReadWriteTransactionagainst the underlying data store.- Parameters:
nodeId- theNodeIdto use for the transaction context.- Returns:
- the
ReadOnlyTransaction
-
openExclusiveRW
ExclusiveReadWriteTransaction openExclusiveRW()Opens aExclusiveReadWriteTransactionwhich will lock the entire underlying data storage such that certain operations may be performed against the whole dataset. Generally this should be avoided as it incurs a steep performance penalty.- Returns:
- the
ExclusiveReadWriteTransaction
-