Object

scala.concurrent.stm.japi

STM

Related Doc: package japi

Permalink

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
Visibility
  1. Public
  2. All

Type Members

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

    Permalink

Value Members

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  4. def afterCommit(task: Runnable): Unit

    Permalink

    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

  5. def afterCompletion(task: Runnable): Unit

    Permalink

    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

  6. def afterRollback(task: Runnable): Unit

    Permalink

    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

  7. final def asInstanceOf[T0]: T0

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

    Permalink

    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

  9. def atomic(runnable: Runnable): Unit

    Permalink

    Atomic block that takes a Runnable.

    Atomic block that takes a Runnable.

    runnable

    the Runnable to run within a transaction

  10. def clone(): AnyRef

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

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

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

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

    Permalink

    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

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

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

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

    Permalink

    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

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

    Permalink

    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

  19. final def isInstanceOf[T0]: Boolean

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

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

    Permalink

    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.

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

    Permalink

    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.

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

    Permalink

    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

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

    Permalink

    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.

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

    Permalink

    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)

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

    Permalink

    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

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

    Permalink

    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

  28. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  30. def retry(): Unit

    Permalink

    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

  31. def retryFor(timeoutMillis: Long): Unit

    Permalink

    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.

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

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

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

    Permalink

    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

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

    Permalink

    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

  36. final def wait(): Unit

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped