Durable

trait Durable extends DurableLike[Txn] with Sys
Companion
object
trait Sys
trait DurableLike[Txn]
trait Cursor[Txn]
trait Sys
trait Base
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any

Type members

Types

override
type I = Txn
override
type T = Txn

Value members

Abstract methods

override
def inMemory: InMemory
Definition Classes
DurableLike

Inherited methods

def close(): Unit

Closes the underlying database (if the system is durable). The STM cannot be used beyond this call. An in-memory system should have a no-op implementation.

Closes the underlying database (if the system is durable). The STM cannot be used beyond this call. An in-memory system should have a no-op implementation.

Inherited from
Base
def debugListUserRecords()(implicit tx: T): Seq[Ident[T]]
Inherited from
DurableLike
def numRecords(implicit tx: T): Int

Reports the current number of records stored in the database.

Reports the current number of records stored in the database.

Inherited from
DurableLike
def numUserRecords(implicit tx: T): Int

Reports the current number of user records stored in the database. That is the number of records minus those records used for database maintenance.

Reports the current number of user records stored in the database. That is the number of records minus those records used for database maintenance.

Inherited from
DurableLike
def root[A](init: T => A)(implicit format: TFormat[T, A]): Source[T, A]

Reads the root object representing the stored data structure, or provides a newly initialized one via the init argument, if no root has been stored yet.

Reads the root object representing the stored data structure, or provides a newly initialized one via the init argument, if no root has been stored yet.

Inherited from
Sys
def step[A](fun: Txn => A): A

Issues a new transaction (executor), runs the function argument on it, and returns the result.

Issues a new transaction (executor), runs the function argument on it, and returns the result.

Inherited from
Cursor
def stepTag[A](systemTimeNanos: Long)(fun: Txn => A): A

Issues a new transaction (executor), tagged with the given time referring to "now", runs the function argument on it, and returns the result.

Issues a new transaction (executor), tagged with the given time referring to "now", runs the function argument on it, and returns the result.

The tagging can be used for latency based circumstances, such as scheduling OSC bundles on a sound server.

Value Params
systemTimeNanos

Time in nano-seconds since midnight, January 1, 1970 UTC. E.g. System.currentTimeMillis() * 1000000000L (possibly adding nano-seconds fraction).

Inherited from
Cursor
def wrap(peer: InTxn, systemTimeNanos: Long): T
Inherited from
DurableLike