de.sciss.lucre.stm.impl

BasicTxnImpl

trait BasicTxnImpl[S <: Sys[S]] extends Txn[S]

Self Type
BasicTxnImpl[S] with S.Tx
Linear Supertypes
Txn[S], TxnLike, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. BasicTxnImpl
  2. Txn
  3. TxnLike
  4. AnyRef
  5. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def newBooleanVar(id: S.ID, init: Boolean): S.Var[Boolean]

    Definition Classes
    Txn
  2. abstract def newDurableIDMap[A](implicit serializer: Serializer[S.Tx, S.Acc, A]): IdentifierMap[S.ID, S.Tx, A]

    Creates a new durable transactional map for storing and retrieving values based on a mutable's identifier as key.

    Creates a new durable 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.

    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

    serializer

    the serializer for values in the map

    Definition Classes
    Txn
  3. abstract def newHandle[A](value: A)(implicit serializer: Serializer[S.Tx, S.Acc, A]): Source[S.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
    Txn
  4. abstract def newID(): S.ID

    Definition Classes
    Txn
  5. abstract def newInMemoryIDMap[A]: IdentifierMap[S.ID, S.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
    Txn
  6. abstract def newIntVar(id: S.ID, init: Int): S.Var[Int]

    Definition Classes
    Txn
  7. abstract def newLocalVar[A](init: (S.Tx) ⇒ A): LocalVar[S.Tx, A]

    Definition Classes
    Txn
  8. abstract def newLongVar(id: S.ID, init: Long): S.Var[Long]

    Definition Classes
    Txn
  9. abstract def newPartialID(): S.ID

    Definition Classes
    Txn
  10. abstract def newPartialVar[A](id: S.ID, init: A)(implicit serializer: Serializer[S.Tx, S.Acc, A]): S.Var[A]

    Definition Classes
    Txn
  11. abstract def newVar[A](id: S.ID, init: A)(implicit serializer: Serializer[S.Tx, S.Acc, A]): S.Var[A]

    Definition Classes
    Txn
  12. abstract def newVarArray[A](size: Int): Array[S.Var[A]]

    Definition Classes
    Txn
  13. 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 seting 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.

    Definition Classes
    TxnLike
  14. abstract def readBooleanVar(id: S.ID, in: DataInput): S.Var[Boolean]

    Definition Classes
    Txn
  15. abstract def readDurableIDMap[A](in: DataInput)(implicit serializer: Serializer[S.Tx, S.Acc, A]): IdentifierMap[S.ID, S.Tx, A]

    Definition Classes
    Txn
  16. abstract def readID(in: DataInput, acc: S.Acc): S.ID

    Definition Classes
    Txn
  17. abstract def readIntVar(id: S.ID, in: DataInput): S.Var[Int]

    Definition Classes
    Txn
  18. abstract def readLongVar(id: S.ID, in: DataInput): S.Var[Long]

    Definition Classes
    Txn
  19. abstract def readPartialID(in: DataInput, acc: S.Acc): S.ID

    Definition Classes
    Txn
  20. abstract def readPartialVar[A](id: S.ID, in: DataInput)(implicit serializer: Serializer[S.Tx, S.Acc, A]): S.Var[A]

    Definition Classes
    Txn
  21. abstract def readVar[A](id: S.ID, in: DataInput)(implicit serializer: Serializer[S.Tx, S.Acc, A]): S.Var[A]

    Definition Classes
    Txn
  22. abstract def system: S

    Back link to the underlying system

    Back link to the underlying system

    Definition Classes
    Txn

Concrete Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. 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
    BasicTxnImplTxnLike
  7. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  8. def beforeCommit(fun: (S.Tx) ⇒ Unit): Unit

    Definition Classes
    BasicTxnImplTxn
  9. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  10. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  11. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  12. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  13. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  14. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  15. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  16. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  17. final def notify(): Unit

    Definition Classes
    AnyRef
  18. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  19. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  20. def toString(): String

    Definition Classes
    AnyRef → Any
  21. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  22. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()
  23. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from Txn[S]

Inherited from TxnLike

Inherited from AnyRef

Inherited from Any

Ungrouped