trait Txn extends InMemoryLike.Txn[Txn]
- Alphabetic
- By Inheritance
- Txn
- Txn
- Txn
- TxnLike
- Exec
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- final type I = Txn
- final type Id = InMemoryLike.Id[Txn]
- final type Var[A] = InMemoryLike.Var[Txn, A]
- Definition Classes
- Txn
Abstract Value Members
- 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[Txn]): AttrMap[Txn]
- Definition Classes
- Txn
- abstract def attrMapOption(obj: Obj[Txn]): Option[AttrMap[Txn]]
- Definition Classes
- Txn
- abstract def beforeCommit(fun: (Txn) => Unit): Unit
- Definition Classes
- Txn
- abstract def inMemory: I
- Definition Classes
- Exec
- implicit abstract def inMemoryBridge: (Txn) => I
- Definition Classes
- Exec
- implicit abstract def inMemoryCursor: Cursor[I]
- Definition Classes
- Exec
- abstract def newHandle[A](value: A)(implicit format: TFormat[Txn, A]): Source[Txn, 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- format
used to write and freshly read the object
- returns
the handle
- Definition Classes
- Exec
- abstract def newId(): Id
- Definition Classes
- Exec
- abstract 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.
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
- Exec
- abstract def newInMemoryMap[A, B]: RefMap[Txn, A, B]
- Definition Classes
- Exec
- abstract def newInMemorySet[A]: RefSet[Txn, A]
- Definition Classes
- Exec
- abstract def newRef[A](init: A): Ref[Txn, A]
- Definition Classes
- Exec
- 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 readId(in: DataInput): Id
- Definition Classes
- Exec
- abstract def system: InMemoryLike[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[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- 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() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated