scala.concurrent.stm

TSet

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
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

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

  3. abstract def dbgStr: String

    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

    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

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

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

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

  9. abstract def single: View[A]

    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

Concrete Value Members

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

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

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

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

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

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

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

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

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

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

  11. final def asInstanceOf[T0]: T0

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

  13. def clone(): AnyRef

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  25. def toString(): String

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

  27. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TxnDebuggable

Inherited from AnyRef

Inherited from Any

Ungrouped