Trait

de.sciss.lucre.confluent

Txn

Related Doc: package confluent

Permalink

trait Txn[S <: Sys[S]] extends stm.Txn[S]

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Txn
  2. Txn
  3. TxnLike
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def afterCommit(fun: ⇒ Unit): Unit

    Permalink

    Registers a thunk to be executed after the transaction successfully committed.

    Registers a thunk to be executed after the transaction successfully committed.

    Definition Classes
    TxnTxnLike
  2. abstract def attrMap(obj: Obj[S]): AttrMap[S]

    Permalink
    Definition Classes
    Txn
  3. abstract def beforeCommit(fun: (S.Tx) ⇒ Unit): Unit

    Permalink
    Definition Classes
    Txn
  4. implicit abstract def durable: Sys.D.Tx

    Permalink
  5. abstract def inMemory: Sys.I.Tx

    Permalink
    Definition Classes
    Txn
  6. abstract def info: Modifiable

    Permalink
  7. abstract def inputAccess: Access[S]

    Permalink
  8. abstract def isRetroactive: Boolean

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

    Permalink
    Definition Classes
    Txn
  10. abstract def newHandle[A](value: A)(implicit serializer: Serializer[S.Tx, S.Acc, A]): stm.Source[S.Tx, A]

    Permalink

    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
  11. abstract def newHandleM[A](value: A)(implicit serializer: Serializer[S.Tx, Access[S], A]): Source[S, A]

    Permalink

    The confluent handle is enhanced with the meld method.

  12. abstract def newID(): S.ID

    Permalink
    Definition Classes
    Txn
  13. abstract def newInMemoryIDMap[A]: IdentifierMap[S.ID, S.Tx, A]

    Permalink

    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
  14. abstract def newIntVar(id: S.ID, init: Int): S.Var[Int]

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

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

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

    Permalink
    Definition Classes
    Txn
  18. abstract def peer: InTxn

    Permalink

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

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

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

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

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

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

    Permalink
    Definition Classes
    Txn
  24. abstract val system: S

    Permalink

    Back link to the underlying system.

    Back link to the underlying system.

    Definition Classes
    Txn
  25. abstract def use[A](context: S.Context)(fun: ⇒ A): A

    Permalink
    Definition Classes
    Txn

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

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

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from stm.Txn[S]

Inherited from TxnLike

Inherited from AnyRef

Inherited from Any

Ungrouped