Uses of Class
com.exonum.binding.core.storage.database.Snapshot
Package | Description |
---|---|
com.exonum.binding.core.runtime | |
com.exonum.binding.core.storage.database | |
com.exonum.binding.testkit |
-
Uses of Snapshot in com.exonum.binding.core.runtime
Methods in com.exonum.binding.core.runtime that return Snapshot Modifier and Type Method Description Snapshot
AccessFactory. createSnapshot(long nativeHandle, Cleaner cleaner)
Creates a new owning snapshot.Snapshot
AccessProxyFactory. createSnapshot(long nativeHandle, Cleaner cleaner)
Methods in com.exonum.binding.core.runtime with parameters of type Snapshot Modifier and Type Method Description void
ServiceRuntime. afterCommit(Snapshot snapshot, java.util.OptionalInt validatorId, long height)
Notifies the services in the runtime of the block commit event.Method parameters in com.exonum.binding.core.runtime with type arguments of type Snapshot Modifier and Type Method Description <ResultT> ResultT
NodeProxy. withSnapshot(java.util.function.Function<Snapshot,ResultT> snapshotFunction)
-
Uses of Snapshot in com.exonum.binding.core.storage.database
Methods in com.exonum.binding.core.storage.database that return Snapshot Modifier and Type Method Description Snapshot
Database. createSnapshot(Cleaner cleaner)
Creates a new snapshot of the database state.Snapshot
TemporaryDb. createSnapshot(Cleaner cleaner)
static Snapshot
Snapshot. newInstance(long nativeHandle, boolean owningHandle, Cleaner cleaner)
Creates a new Snapshot proxy.static Snapshot
Snapshot. newInstance(long nativeHandle, Cleaner cleaner)
Creates a new owning Snapshot proxy. -
Uses of Snapshot in com.exonum.binding.testkit
Methods in com.exonum.binding.testkit that return Snapshot Modifier and Type Method Description Snapshot
TestKit. getSnapshot()
Returns a snapshot of the current database state (i.e., the one that corresponds to the latest committed block).Method parameters in com.exonum.binding.testkit with type arguments of type Snapshot Modifier and Type Method Description <ResultT> ResultT
TestKit. applySnapshot(java.util.function.Function<Snapshot,ResultT> snapshotFunction)
Performs the given function with a snapshot of the current database state (i.e., the one that corresponds to the latest committed block) and returns a result of its execution.void
TestKit. withSnapshot(java.util.function.Consumer<Snapshot> snapshotFunction)
Performs the given function with a snapshot of the current database state (i.e., the one that corresponds to the latest committed block).