DurableLike

trait DurableLike[Tx <: Txn[Tx]] extends Sys with Cursor[Tx]
Companion
object
trait Cursor[Tx]
trait Sys
trait Base
trait Closeable
trait AutoCloseable
class Object
trait Matchable
class Any
trait Durable
trait Mixin[T, I]

Type members

Types

type I <: Txn[I]
type T = Tx

Value members

Abstract methods

def debugListUserRecords()(implicit tx: T): Seq[Ident[T]]
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.

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.

def wrap(peer: InTxn, systemTimeNanos: Long): T

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 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: Tx => 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: Tx => 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