object Threading
Factories and utilities for dealing with threading.
- Alphabetic
- By Inheritance
- Threading
- 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]) @IntrinsicCandidate() @native()
- 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.
- def detectNumberOfThreads(logger: Logger): PositiveInt
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()
- def directExecutionContext(logger: Logger): ExecutionContextExecutor
- 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
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val minParallelismForForkJoinPool: PositiveInt
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.
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newExecutionContext(name: String, logger: Logger, parallelism: PositiveInt, maxExtraThreads: PositiveInt = PositiveInt.tryCreate(256), exitOnFatal: Boolean = true): ExecutionContextIdlenessExecutorService
Yields an
ExecutionContextlikescala.concurrent.ExecutionContext.global, except that it has its own thread pool.Yields an
ExecutionContextlikescala.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: Logger): ExecutionContextIdlenessExecutorService
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- def singleThreadScheduledExecutor(name: String, logger: Logger): 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: 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
- 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
- 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])
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])