object Threading

Factories and utilities for dealing with threading.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Threading
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  6. def createReporter(name: String, logger: Logger, exitOnFatal: Boolean)(throwable: Throwable): Unit

    exitOnFatal

    terminate the JVM on fatal errors. Enable this in production to prevent data corruption by termination of specific threads.

  7. def detectNumberOfThreads(logger: Logger): Int

    Detects the number of threads the same way as scala.concurrent.impl.ExecutionContextImpl, except that system property values like 'x2' are not supported.

    Detects the number of threads the same way as scala.concurrent.impl.ExecutionContextImpl, except that system property values like 'x2' are not supported.

    This will run once and cache the results

    Annotations
    @SuppressWarnings()
  8. def directExecutionContext(logger: Logger): ExecutionContext
  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val maxThreadsProp: String
  15. val minParallelismForForkJoinPool: Int

    Minimum parallelism of ForkJoinPool.

    Minimum parallelism of ForkJoinPool. Currently greater than one to work around a bug that prevents creation of new threads to compensate blocking tasks.

  16. val minThreadsProp: String
  17. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  18. def newExecutionContext(name: String, logger: Logger, parallelism: Int, maxExtraThreads: Int = 256, exitOnFatal: Boolean = true): ExecutionContextIdlenessExecutorService

    Yields an ExecutionContext like scala.concurrent.ExecutionContext.global, except that it has its own thread pool.

    Yields an ExecutionContext like scala.concurrent.ExecutionContext.global, except that it has its own thread pool.

    exitOnFatal

    terminate the JVM on fatal errors. Enable this in production to prevent data corruption by termination of specific threads.

    Annotations
    @SuppressWarnings()
  19. def newExecutionContext(name: String, logger: Logger): ExecutionContextIdlenessExecutorService
  20. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  21. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  22. val numThreadsProp: String
  23. def singleThreadScheduledExecutor(name: String, logger: Logger, daemon: Boolean = false): ScheduledExecutorService

    Creates a singled threaded scheduled executor.

    Creates a singled threaded scheduled executor.

    name

    used for created threads. Prefer dash separated names. -{n} will be appended.

    logger

    where uncaught exceptions are logged

  24. def singleThreadedExecutor(name: String, logger: Logger): ExecutionContextIdlenessExecutorService

    Creates a singled threaded scheduled executor with maximum thread pool size = 1.

    Creates a singled threaded scheduled executor with maximum thread pool size = 1.

    name

    used for created threads. Prefer dash separated names.

    logger

    where uncaught exceptions are logged

  25. def sleep(millis: Long, nanos: Int = 0): Unit
    Annotations
    @SuppressWarnings()
  26. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  27. val threadingProps: List[String]
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  30. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  31. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped