Txn

trait Txn extends Txn[Txn] with Txn[Txn]
trait Txn[Txn]
trait RT
trait Txn[Txn]
trait Txn[Txn]
trait TxnLike
trait Exec[Txn]
class Object
trait Matchable
class Any

Type members

Types

type D = Txn
type I = Txn

Inherited types

type Acc = Access[T]
Inherited from
Txn
type Id = Ident[T]
Inherited from
Txn
type Var[A] = Var[T, A]
Inherited from
Txn

Value members

Inherited methods

def addMessage(resource: Resource, m: Message & Send, dependencies: Seq[Resource]): Unit
Inherited from
RT
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.

Inherited from
TxnLike
def attrMap(obj: Obj[Txn]): AttrMap[Txn]
Inherited from
Txn
def attrMapOption(obj: Obj[Txn]): Option[AttrMap[Txn]]
Inherited from
Txn
def beforeCommit(fun: Txn => Unit): Unit
Inherited from
Txn
def inMemory: I
Inherited from
Exec
def info: Modifiable
Inherited from
Txn
def inputAccess: Acc
Inherited from
Txn
def isRetroactive: Boolean
Inherited from
Txn
override
def newHandle[A](value: A)(implicit format: TFormat[Txn, A]): Source[Txn, A]

The returned source is confluent.

The returned source is confluent.

Definition Classes
Txn -> Exec
Inherited from
Txn
def newHandleM[A](value: A)(implicit format: TFormat[Txn, A]): Source[Txn, A]

The confluent handle is enhanced with the meld method.

The confluent handle is enhanced with the meld method.

Inherited from
Txn
def newId(): Id
Inherited from
Exec
def newIdentMap[A]: IdentMap[Txn, A]

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.

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).

Type Params
A

the value type in the map

Inherited from
Exec
def newInMemoryMap[A, B]: RefMap[Txn, A, B]
Inherited from
Exec
def newInMemorySet[A]: RefSet[Txn, A]
Inherited from
Exec
def newRef[A](init: A): Ref[Txn, A]
Inherited from
Exec
def peer: InTxn

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 of concurrent.stm.Txn. It is also needed when re-wrapping the transaction of one system into another.

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 of concurrent.stm.Txn. It is also needed when re-wrapping the transaction of one system into another.

Inherited from
TxnLike
def readId(in: DataInput): Id
Inherited from
Exec
def system: ConfluentLike[Txn] { type I = I; }
Inherited from
Txn

Or zero if not scheduled.

Or zero if not scheduled.

Inherited from
RT

Implicits

Inherited implicits

implicit
def durable: D
Inherited from
Txn
implicit
Inherited from
Txn
implicit
Inherited from
Exec
implicit
def inMemoryCursor: Cursor[I]
Inherited from
Exec