object Threading extends NoTracing

Factories and utilities for dealing with threading.

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Threading
  2. NoTracing
  3. AnyRef
  4. 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() @HotSpotIntrinsicCandidate()
  6. def createReporter(name: String, logger: TracedLogger, 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: TracedLogger)(implicit traceContext: TraceContext): 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.

    Annotations
    @SuppressWarnings()
  8. def directExecutionContext(logger: TracedLogger): 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() @HotSpotIntrinsicCandidate()
  12. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  14. val maxThreadsProp: String
  15. val minThreadsProp: String
  16. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  17. def newExecutionContext(name: String, logger: TracedLogger, 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()
  18. def newExecutionContext(name: String, logger: TracedLogger): ExecutionContextIdlenessExecutorService
  19. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  20. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. val numThreadsProp: String
  22. def singleThreadScheduledExecutor(name: String, logger: TracedLogger, 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

  23. def singleThreadedExecutor(name: String, logger: TracedLogger): 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

  24. def sleep(millis: Long, nanos: Int = 0): Unit
    Annotations
    @SuppressWarnings()
  25. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  26. val threadingProps: List[String]
  27. def toString(): String
    Definition Classes
    AnyRef → Any
  28. implicit def traceContext: TraceContext
    Attributes
    protected
    Definition Classes
    NoTracing
  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

Inherited from NoTracing

Inherited from AnyRef

Inherited from Any

Ungrouped