scala.concurrent.stm.japi

STM

object STM

Java-friendly API for ScalaSTM. These methods can also be statically imported.

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. STM
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. abstract class Transformer[A <: AnyRef] extends AnyRef

Value Members

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

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

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

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

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

    Definition Classes
    Any
  6. def afterCommit(task: Runnable): Unit

    Add a task to run after the current transaction has committed.

    Add a task to run after the current transaction has committed.

    task

    the Runnable task to run after transaction commit

    Exceptions thrown
    IllegalStateException

    if called from outside a transaction

  7. def afterCompletion(task: Runnable): Unit

    Add a task to run after the current transaction has either rolled back or committed.

    Add a task to run after the current transaction has either rolled back or committed.

    task

    the Runnable task to run after transaction completion

    Exceptions thrown
    IllegalStateException

    if called from outside a transaction

  8. def afterRollback(task: Runnable): Unit

    Add a task to run after the current transaction has rolled back.

    Add a task to run after the current transaction has rolled back.

    task

    the Runnable task to run after transaction rollback

    Exceptions thrown
    IllegalStateException

    if called from outside a transaction

  9. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  10. def atomic[A <: AnyRef](callable: Callable[A]): A

    Atomic block that takes a Callable.

    Atomic block that takes a Callable.

    callable

    the Callable to run within a transaction

    returns

    the value returned by the Callable

  11. def atomic(runnable: Runnable): Unit

    Atomic block that takes a Runnable.

    Atomic block that takes a Runnable.

    runnable

    the Runnable to run within a transaction

  12. def clone(): AnyRef

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  16. def getAndTransform[A <: AnyRef](ref: View[A], f: Transformer[A]): A

    Transform the value stored by ref by applying the function f and return the old value.

    Transform the value stored by ref by applying the function f and return the old value.

    ref

    the Ref.View to be transformed

    f

    the function to be applied

    returns

    the old value of ref

  17. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  19. def increment(ref: View[java.lang.Long], delta: Long): Unit

    Increment the java.lang.Long value of a Ref.View.

    Increment the java.lang.Long value of a Ref.View.

    ref

    the Ref.View<Long> to be incremented

    delta

    the amount to increment

  20. def increment(ref: View[Integer], delta: Int): Unit

    Increment the java.lang.Integer value of a Ref.View.

    Increment the java.lang.Integer value of a Ref.View.

    ref

    the Ref.View<Integer> to be incremented

    delta

    the amount to increment

  21. final def isInstanceOf[T0]: Boolean

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

    Definition Classes
    AnyRef
  23. def newArrayAsList[A <: AnyRef](length: Int): java.util.List[A]

    Create an empty TArray.

    Create an empty TArray. Return a java.util.List view of this Array.

    length

    the length of the TArray.View to be created

    returns

    a new, empty TArray.View wrapped as a java.util.List.

  24. def newMap[A, B](): Map[A, B]

    Create an empty TMap.

    Create an empty TMap. Return a java.util.Map view of this TMap.

    returns

    a new, empty TMap.View wrapped as a java.util.Map.

  25. def newRef[A](initialValue: A): View[A]

    Create a Ref with an initial value.

    Create a Ref with an initial value. Return a Ref.View, which does not require implicit transactions.

    initialValue

    the initial value for the newly created Ref.View

    returns

    a new Ref.View

  26. def newSet[A](): Set[A]

    Create an empty TSet.

    Create an empty TSet. Return a java.util.Set view of this TSet.

    returns

    a new, empty TSet.View wrapped as a java.util.Set.

  27. def newTArray[A <: AnyRef](length: Int): View[A]

    Create a TArray containing length elements.

    Create a TArray containing length elements. Return a TArray.View, which does not require implicit transactions. See newList for included java conversion.

    length

    the length of the TArray.View to be created

    returns

    a new TArray.View containing length elements (initially null)

  28. def newTMap[A, B](): View[A, B]

    Create an empty TMap.

    Create an empty TMap. Return a TMap.View, which does not require implicit transactions. See newMap for included java conversion.

    returns

    a new, empty TMap.View

  29. def newTSet[A](): View[A]

    Create an empty TSet.

    Create an empty TSet. Return a TSet.View, which does not require implicit transactions. See newSet for included java conversion.

    returns

    a new, empty TSet.View

  30. final def notify(): Unit

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

    Definition Classes
    AnyRef
  32. def retry(): Unit

    Causes the enclosing transaction to back up and wait until one of the Refs touched by this transaction has changed.

    Causes the enclosing transaction to back up and wait until one of the Refs touched by this transaction has changed.

    Exceptions thrown
    IllegalStateException

    if not in a transaction

  33. def retryFor(timeoutMillis: Long): Unit

    Like retry, but limits the total amount of blocking.

    Like retry, but limits the total amount of blocking. This method only returns normally when the timeout has expired.

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

    Definition Classes
    AnyRef
  35. def toString(): String

    Definition Classes
    AnyRef → Any
  36. def transform[A <: AnyRef](ref: View[A], f: Transformer[A]): Unit

    Transform the value stored by ref by applying the function f.

    Transform the value stored by ref by applying the function f.

    ref

    the Ref.View to be transformed

    f

    the function to be applied

  37. def transformAndGet[A <: AnyRef](ref: View[A], f: Transformer[A]): A

    Transform the value stored by ref by applying the function f and return the new value.

    Transform the value stored by ref by applying the function f and return the new value.

    ref

    the Ref.View to be transformed

    f

    the function to be applied

    returns

    the new value of ref

  38. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any

Ungrouped