trait Txn extends lucre.synth.Sys.Txn[Durable] with lucre.stm.DurableLike.Txn[Durable]
- Alphabetic
- By Inheritance
- Txn
- Txn
- Txn
- Txn
- Txn
- TxnLike
- Executor
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
addMessage(resource: Resource, m: Message with Send, dependencies: Seq[Resource] = Nil): Unit
- Definition Classes
- Txn
-
abstract
def
afterCommit(code: ⇒ Unit): Unit
Registers a thunk to be executed after the transaction successfully committed.
Registers a thunk to be executed after the transaction successfully committed.
- Definition Classes
- TxnLike
-
abstract
def
attrMap(obj: Obj[Durable]): AttrMap[Durable]
- Definition Classes
- Txn
-
abstract
def
beforeCommit(fun: (Tx) ⇒ Unit): Unit
- Definition Classes
- Txn
- abstract def inMemory: lucre.synth.InMemory.Txn
-
abstract
def
newBooleanVar(id: Durable.Id, init: Boolean): Durable.Var[Boolean]
- Definition Classes
- Executor
-
abstract
def
newCachedIntVar(init: Int): Var[Tx, Int]
- Definition Classes
- Txn
-
abstract
def
newCachedLongVar(init: Long): Var[Tx, Long]
- Definition Classes
- Txn
-
abstract
def
newCachedVar[A](init: A)(implicit serializer: Serializer[Tx, Unit, A]): Var[Tx, A]
- Definition Classes
- Txn
-
abstract
def
newHandle[A](value: A)(implicit serializer: Serializer[Tx, Durable.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
get
on the returned handle- serializer
used to write and freshly read the object
- returns
the handle
- Definition Classes
- Executor
-
abstract
def
newId(): Durable.Id
- Definition Classes
- Executor
-
abstract
def
newInMemoryIdMap[A]: IdentifierMap[Durable.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
get
operation 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[Durable, A, B]
- Definition Classes
- Executor
-
abstract
def
newInMemorySet[A]: RefSet[Durable, A]
- Definition Classes
- Executor
-
abstract
def
newIntVar(id: Durable.Id, init: Int): Durable.Var[Int]
- Definition Classes
- Executor
-
abstract
def
newLongVar(id: Durable.Id, init: Long): Durable.Var[Long]
- Definition Classes
- Executor
-
abstract
def
newRef[A](init: A): Ref[Tx, A]
- Definition Classes
- Executor
-
abstract
def
newVar[A](id: Durable.Id, init: A)(implicit serializer: Serializer[Tx, Durable.Acc, A]): Durable.Var[A]
- Definition Classes
- Executor
-
abstract
def
newVarArray[A](size: Int): Array[Durable.Var[A]]
- Definition Classes
- Executor
-
abstract
def
peer: InTxn
Every transaction has a plain Scala-STM transaction as a peer.
Every transaction has a plain Scala-STM transaction as a peer. This comes handy for setting up custom things like
TxnLocal
,TMap
, or calling into the hooks ofconcurrent.stm.Txn
. It is also needed when re-wrapping the transaction of one system into another.- Definition Classes
- TxnLike
-
abstract
def
readBooleanVar(id: Durable.Id, in: DataInput): Durable.Var[Boolean]
- Definition Classes
- Executor
-
abstract
def
readCachedIntVar(in: DataInput): Var[Tx, Int]
- Definition Classes
- Txn
-
abstract
def
readCachedLongVar(in: DataInput): Var[Tx, Long]
- Definition Classes
- Txn
-
abstract
def
readCachedVar[A](in: DataInput)(implicit serializer: Serializer[Tx, Unit, A]): Var[Tx, A]
- Definition Classes
- Txn
-
abstract
def
readId(in: DataInput, acc: Durable.Acc): Durable.Id
- Definition Classes
- Executor
-
abstract
def
readIntVar(id: Durable.Id, in: DataInput): Durable.Var[Int]
- Definition Classes
- Executor
-
abstract
def
readLongVar(id: Durable.Id, in: DataInput): Durable.Var[Long]
- Definition Classes
- Executor
-
abstract
def
readVar[A](id: Durable.Id, in: DataInput)(implicit serializer: Serializer[Tx, Durable.Acc, A]): Durable.Var[A]
- Definition Classes
- Executor
-
abstract
val
system: Durable
Back link to the underlying system.
Back link to the underlying system.
- Definition Classes
- Executor
-
abstract
def
systemTimeNanoSec: Long
Or zero if not scheduled.
Or zero if not scheduled.
- Definition Classes
- Txn
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( ... )