Packages

trait TMap[A, B] extends TxnDebuggable

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
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. TMap
  2. TxnDebuggable
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def apply(key: A)(implicit txn: InTxn): B
  2. abstract def contains(key: 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 filterInPlace(p: (A, B) => Boolean)(implicit txn: InTxn): TMap.this.type
  6. abstract def foreach[U](f: ((A, B)) => U)(implicit txn: InTxn): Unit
  7. abstract def get(key: A)(implicit txn: InTxn): Option[B]
  8. abstract def isEmpty(implicit txn: InTxn): Boolean
  9. abstract def mapValuesInPlace(f: (A, B) => B)(implicit txn: InTxn): TMap.this.type
  10. abstract def put(key: A, value: B)(implicit txn: InTxn): Option[B]
  11. abstract def remove(key: A)(implicit txn: InTxn): Option[B]
  12. abstract 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.

  13. 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 ++=(kvs: IterableOnce[(A, B)])(implicit txn: InTxn): TMap.this.type
  4. def +=(kv: (A, B))(implicit txn: InTxn): TMap.this.type
  5. def --=(ks: IterableOnce[A])(implicit txn: InTxn): TMap.this.type
  6. def -=(k: A)(implicit txn: InTxn): TMap.this.type
  7. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. def clone(implicit txn: InTxn): TMap[A, B]
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  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
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  18. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  19. def snapshot: Map[A, B]
  20. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  21. def toString(): String
    Definition Classes
    AnyRef → Any
  22. def update(key: A, value: B)(implicit txn: InTxn): Unit
  23. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def +=(kv1: (A, B), kv2: (A, B), kvs: (A, B)*)(implicit txn: InTxn): TMap.this.type
    Annotations
    @deprecated
    Deprecated

    (Since version 0.8) use ++=

  2. def -=(k1: A, k2: A, ks: A*)(implicit txn: InTxn): TMap.this.type
    Annotations
    @deprecated
    Deprecated

    (Since version 0.8) use --=

  3. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  4. final def retain(p: (A, B) => Boolean)(implicit txn: InTxn): TMap.this.type
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 0.8) Use .filterInPlace instead of .retain

  5. final def transform(f: (A, B) => B)(implicit txn: InTxn): TMap.this.type
    Annotations
    @deprecated @inline()
    Deprecated

    (Since version 0.8) Use .mapValuesInPlace instead of .transform

Inherited from TxnDebuggable

Inherited from AnyRef

Inherited from Any

Ungrouped