Interface ReadTransactionFactory
-
public interface ReadTransactionFactoryFactory to create ReadTransaction objects.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ReadTransactioncreateReadTransaction(MdibStorage mdibStorage, Lock lock)Creates a read transaction intended for multiple read requests on an MDIB access object.
-
-
-
Method Detail
-
createReadTransaction
ReadTransaction createReadTransaction(MdibStorage mdibStorage, @Nullable Lock lock)
Creates a read transaction intended for multiple read requests on an MDIB access object.- Parameters:
mdibStorage- the storage where to access data.lock- the lock that is used for the lifetime of the read transaction. The lock is gained on object construction and unlocked on auto-close.- Returns:
- a new
ReadTransactioninstance.
-
-