Trait/Object

scala.concurrent.stm

TSet

Related Docs: object TSet | package stm

Permalink

trait TSet[A] extends TxnDebuggable

A transactional set implementation that requires that all of its set-like operations be called from inside an atomic block. Rather than extending Set, an implicit conversion is provided from TSet to Set if the current scope is part of an atomic block (see TSet.asSet).

The elements (with type A) must be immutable, or at least not modified while they are in the set. The TSet implementation assumes that it can safely perform equality and hash checks outside a transaction without affecting atomicity.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TSet
  2. TxnDebuggable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def add(elem: A)(implicit txn: InTxn): Boolean

    Permalink
  2. abstract def contains(elem: A)(implicit txn: InTxn): Boolean

    Permalink
  3. abstract def dbgStr: String

    Permalink

    Returns a string representation of the transactional value in this instance for debugging convenience.

    Returns a string representation of the transactional value in this instance for debugging convenience. The Ref reads (and writes) performed while constructing the result will be discarded before returning. This method works fine outside a transaction.

    If this method is called from within a transaction that is already doomed (status Txn.Rolledback), a string describing the reason for the outer transaction's rollback will be returned.

    Definition Classes
    TxnDebuggable
  4. abstract def dbgValue: Any

    Permalink

    Returns some value that is suitable for examination in a debugger, or returns a Txn.RollbackCause if called from inside a doomed atomic block.

    Returns some value that is suitable for examination in a debugger, or returns a Txn.RollbackCause if called from inside a doomed atomic block.

    Definition Classes
    TxnDebuggable
  5. abstract def foreach[U](f: (A) ⇒ U)(implicit txn: InTxn): Unit

    Permalink
  6. abstract def isEmpty(implicit txn: InTxn): Boolean

    Permalink
  7. abstract def remove(elem: A)(implicit txn: InTxn): Boolean

    Permalink
  8. abstract def retain(p: (A) ⇒ Boolean)(implicit txn: InTxn): TSet.this.type

    Permalink
  9. abstract def single: View[A]

    Permalink

    Returns an instance that provides transactional set functionality without requiring that operations be performed inside the static scope of an atomic block.

  10. abstract def size(implicit txn: InTxn): Int

    Permalink

Concrete Value Members

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  3. def ++=(xs: TraversableOnce[A])(implicit txn: InTxn): TSet.this.type

    Permalink
  4. def +=(x1: A, x2: A, xs: A*)(implicit txn: InTxn): TSet.this.type

    Permalink
  5. def +=(x: A)(implicit txn: InTxn): TSet.this.type

    Permalink
  6. def --=(xs: TraversableOnce[A])(implicit txn: InTxn): TSet.this.type

    Permalink
  7. def -=(x1: A, x2: A, xs: A*)(implicit txn: InTxn): TSet.this.type

    Permalink
  8. def -=(x: A)(implicit txn: InTxn): TSet.this.type

    Permalink
  9. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  10. def apply(elem: A)(implicit txn: InTxn): Boolean

    Permalink
  11. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  12. def clone(implicit txn: InTxn): TSet[A]

    Permalink
  13. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  23. def snapshot: Set[A]

    Permalink
  24. final def synchronized[T0](arg0: ⇒ T0): T0

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

    Permalink
    Definition Classes
    AnyRef → Any
  26. def update(elem: A, included: Boolean)(implicit txn: InTxn): Unit

    Permalink
  27. final def wait(): Unit

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

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

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

Inherited from TxnDebuggable

Inherited from AnyRef

Inherited from Any

Ungrouped