Class/Object

io.chymyst.jc

BlockingPool

Related Docs: object BlockingPool | package jc

Permalink

final class BlockingPool extends Pool

A cached pool that increases its thread count whenever a blocking molecule is emitted, and decreases afterwards. The BlockingIdle function, similar to scala.concurrent.blocking, is used to annotate expressions that should lead to an increase of thread count, and to a decrease of thread count once the idle blocking call returns.

Linear Supertypes
Pool, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. BlockingPool
  2. Pool
  3. AutoCloseable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new BlockingPool(name: String, parallelism: Int = cpuCores, priority: Int = Thread.NORM_PRIORITY)

    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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. def close(): Unit

    Permalink
    Definition Classes
    Pool → AutoCloseable
  7. def currentPoolSize: Int

    Permalink
  8. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. val executionContext: ExecutionContext

    Permalink
    Definition Classes
    Pool
  11. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def isInactive: Boolean

    Permalink
    Definition Classes
    Pool
  15. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  16. val name: String

    Permalink
    Definition Classes
    Pool
  17. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  18. final def notify(): Unit

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

    Permalink
    Definition Classes
    AnyRef
  20. val parallelism: Int

    Permalink
    Definition Classes
    BlockingPoolPool
  21. val poolSizeLimit: Int

    Permalink
  22. val priority: Int

    Permalink
    Definition Classes
    Pool
  23. def recycleThreadTimeMs: Long

    Permalink
    Definition Classes
    Pool
  24. def shutdownNow(): Unit

    Permalink

    Shut down the thread pool when required.

    Shut down the thread pool when required. This will interrupt all threads and clear the worker and the scheduler queues.

    Usually this is not needed in application code. Call this method in a situation when work has to be stopped immediately.

    Definition Classes
    Pool
  25. def shutdownWaitTimeMs: Long

    Permalink
    Definition Classes
    Pool
  26. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  27. val threadGroup: ThreadGroup

    Permalink
    Definition Classes
    Pool
  28. val toString: String

    Permalink
    Definition Classes
    Pool → AnyRef → Any
  29. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  32. val workerExecutor: ThreadPoolExecutor

    Permalink
    Attributes
    protected
    Definition Classes
    Pool

Inherited from Pool

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped