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 ofReadOnlyTransaction
against the underlying data store.Starts building an instance ofReadWriteTransaction
against the underlying data store.Opens aExclusiveReadWriteTransaction
which 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 ofReadOnlyTransaction
against the underlying data store.- Parameters:
nodeId
- theNodeId
to use for the transaction context.- Returns:
- the
ReadOnlyTransaction
-
buildRW
Starts building an instance ofReadWriteTransaction
against the underlying data store.- Parameters:
nodeId
- theNodeId
to use for the transaction context.- Returns:
- the
ReadOnlyTransaction
-
openExclusiveRW
ExclusiveReadWriteTransaction openExclusiveRW()Opens aExclusiveReadWriteTransaction
which 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
-