object Threading extends NoTracing
Factories and utilities for dealing with threading.
- Alphabetic
- By Inheritance
- Threading
- NoTracing
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- 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.
- 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()
- def directExecutionContext(logger: TracedLogger): ExecutionContext
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val maxThreadsProp: String
- val minThreadsProp: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newExecutionContext(name: String, logger: TracedLogger, parallelism: Int, maxExtraThreads: Int = 256, exitOnFatal: Boolean = true): ExecutionContextIdlenessExecutorService
Yields an
ExecutionContext
likescala.concurrent.ExecutionContext.global
, except that it has its own thread pool.Yields an
ExecutionContext
likescala.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()
- def newExecutionContext(name: String, logger: TracedLogger): ExecutionContextIdlenessExecutorService
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val numThreadsProp: String
- 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
- 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
- def sleep(millis: Long, nanos: Int = 0): Unit
- Annotations
- @SuppressWarnings()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- val threadingProps: List[String]
- def toString(): String
- Definition Classes
- AnyRef → Any
- implicit def traceContext: TraceContext
- Attributes
- protected
- Definition Classes
- NoTracing
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])