scala.concurrent.stm

TMap

trait TMap [A, B] extends AnyRef

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

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

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. TMap
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Abstract Value Members

  1. def apply (key: A)(implicit txn: InTxn): B

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

    Attributes
    abstract
  3. def foreach [U] (f: ((A, B)) ⇒ U)(implicit txn: InTxn): Unit

    Attributes
    abstract
  4. def get (key: A)(implicit txn: InTxn): Option[B]

    Attributes
    abstract
  5. def isEmpty (implicit txn: InTxn): Boolean

    Attributes
    abstract
  6. def put (key: A, value: B)(implicit txn: InTxn): Option[B]

    Attributes
    abstract
  7. def remove (key: A)(implicit txn: InTxn): Option[B]

    Attributes
    abstract
  8. def retain (p: (A, B) ⇒ Boolean)(implicit txn: InTxn): TMap.this.type

    Attributes
    abstract
  9. def single : View[A, B]

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

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

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

    Attributes
    abstract
  11. def transform (f: (A, B) ⇒ B)(implicit txn: InTxn): TMap.this.type

    Attributes
    abstract

Concrete Value Members

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def ++= (kvs: TraversableOnce[(A, B)])(implicit txn: InTxn): TMap.this.type

  5. def += (kv1: (A, B), kv2: (A, B), kvs: (A, B)*)(implicit txn: InTxn): TMap.this.type

  6. def += (kv: (A, B))(implicit txn: InTxn): TMap.this.type

  7. def --= (ks: TraversableOnce[A])(implicit txn: InTxn): TMap.this.type

  8. def -= (k1: A, k2: A, ks: A*)(implicit txn: InTxn): TMap.this.type

  9. def -= (k: A)(implicit txn: InTxn): TMap.this.type

  10. def == (arg0: AnyRef): Boolean

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

    Attributes
    final
    Definition Classes
    Any
  12. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  13. def clone (implicit txn: InTxn): TMap[A, B]

  14. def clone (): AnyRef

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  19. def hashCode (): Int

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  22. def notify (): Unit

    Attributes
    final
    Definition Classes
    AnyRef
  23. def notifyAll (): Unit

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

    Attributes
    final
    Definition Classes
    AnyRef
  25. def toString (): String

    Definition Classes
    AnyRef → Any
  26. def update (key: A, value: B)(implicit txn: InTxn): Unit

  27. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any