Package com.exonum.binding.core.runtime
Interface AccessFactory
- All Known Implementing Classes:
AccessProxyFactory
public interface AccessFactory
A factory of database accesses.
Enables easier testing of the service runtime adapter.
-
Method Summary
Modifier and Type Method Description BlockchainDatacreateBlockchainData(long nativeHandle, Cleaner cleaner)Creates a new owning blockchain data.ForkcreateFork(long nativeHandle, Cleaner cleaner)Creates a new owning fork.SnapshotcreateSnapshot(long nativeHandle, Cleaner cleaner)Creates a new owning snapshot.
-
Method Details
-
createSnapshot
Creates a new owning snapshot.- Parameters:
nativeHandle- a handle to the native snapshot objectcleaner- a cleaner to register the destructor
-
createFork
Creates a new owning fork.- Parameters:
nativeHandle- a handle to the native fork objectcleaner- a cleaner to register the destructor
-
createBlockchainData
Creates a new owning blockchain data.- Parameters:
nativeHandle- a handle to the native BlockchainData objectcleaner- a cleaner to register the destructor
-