trait Plain extends Base[Plain] with Cursor[Plain] with Executor[Plain]
- Alphabetic
- By Inheritance
- Plain
- Executor
- Cursor
- Base
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
type
Acc = Unit
The path access type for objects if they carry a temporal trace.
- type I = Plain
-
type
Id = Identifier[Plain]
The identifier type of the system.
The identifier type of the system. This is an opaque type about which the user only knows that it uniquely identifies and object (or an object along with its access path in the confluent case). It is thus valid to assume that two objects are equal if their identifiers are equal.
-
type
Tx = Plain
The transaction type of the system.
-
type
Var[A] = stm.Var[Tx, A]
The variable type of the system.
Abstract Value Members
-
abstract
def
close(): Unit
Closes the underlying database (if the system is durable).
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.
- Definition Classes
- Base → Closeable → AutoCloseable
-
abstract
def
inMemory: I
- Definition Classes
- Base
-
abstract
def
inMemoryTx(tx: Tx): Tx
- Definition Classes
- Base
-
abstract
def
newBooleanVar(id: Id, init: Boolean): Var[Boolean]
- Definition Classes
- Executor
-
abstract
def
newHandle[A](value: A)(implicit serializer: Serializer[Tx, Acc, A]): Source[Tx, A]
Creates a handle (in-memory) to refresh a stale version of an object, assuming that the future transaction is issued from the same cursor that is used to create the handle, except for potentially having advanced.
Creates a handle (in-memory) to refresh a stale version of an object, assuming that the future transaction is issued from the same cursor that is used to create the handle, except for potentially having advanced. This is a mechanism that can be used in live views to gain valid access to a referenced object (e.g. self access).
- value
the object which will be refreshed when calling
geton the returned handle- serializer
used to write and freshly read the object
- returns
the handle
- Definition Classes
- Executor
-
abstract
def
newId(): Id
- Definition Classes
- Executor
-
abstract
def
newInMemoryIdMap[A]: IdentifierMap[Id, Tx, A]
Creates a new in-memory transactional map for storing and retrieving values based on a mutable's identifier as key.
Creates a new in-memory transactional map for storing and retrieving values based on a mutable's identifier as key. If a system is confluently persistent, the
getoperation will find the most recent key that matches the search key. Objects are not serialized but kept live in memory.Id maps can be used by observing views to look up associated view meta data even though they may be presented with a more recent access path of the model peer (e.g. when a recent event is fired and observed).
- A
the value type in the map
- Definition Classes
- Executor
-
abstract
def
newInMemoryMap[A, B]: RefMap[Plain, A, B]
- Definition Classes
- Executor
-
abstract
def
newInMemorySet[A]: RefSet[Plain, A]
- Definition Classes
- Executor
-
abstract
def
newIntVar(id: Id, init: Int): Var[Int]
- Definition Classes
- Executor
-
abstract
def
newLongVar(id: Id, init: Long): Var[Long]
- Definition Classes
- Executor
-
abstract
def
newRef[A](init: A): Ref[Tx, A]
- Definition Classes
- Executor
-
abstract
def
newVar[A](id: Id, init: A)(implicit serializer: Serializer[Tx, Acc, A]): Var[A]
- Definition Classes
- Executor
-
abstract
def
newVarArray[A](size: Int): Array[Var[A]]
- Definition Classes
- Executor
-
abstract
def
position(implicit tx: Tx): Acc
- Definition Classes
- Cursor
-
abstract
def
readBooleanVar(id: Id, in: DataInput): Var[Boolean]
- Definition Classes
- Executor
-
abstract
def
readId(in: DataInput, acc: Acc): Id
- Definition Classes
- Executor
-
abstract
def
readIntVar(id: Id, in: DataInput): Var[Int]
- Definition Classes
- Executor
-
abstract
def
readLongVar(id: Id, in: DataInput): Var[Long]
- Definition Classes
- Executor
-
abstract
def
readVar[A](id: Id, in: DataInput)(implicit serializer: Serializer[Tx, Acc, A]): Var[A]
- Definition Classes
- Executor
-
abstract
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.
- Definition Classes
- Cursor
-
abstract
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.
- systemTimeNanos
Time in nano-seconds since midnight, January 1, 1970 UTC. E.g.
System.currentTimeMillis() * 1000000000L(possibly adding nano-seconds fraction).
- Definition Classes
- Cursor
-
abstract
val
system: Plain
Back link to the underlying system.
Back link to the underlying system.
- Definition Classes
- Executor
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )