Class

io.chymyst.jc

Pool

Related Doc: package jc

Permalink

abstract class Pool extends AutoCloseable

A pool of execution threads, or another way of running tasks (could use actors or whatever else). Tasks submitted for execution can have Chymyst-specific info (useful for debugging) when scheduled using runReaction. The pool can be shut down, in which case all further tasks will be refused.

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

Instance Constructors

  1. new Pool(name: String, priority: Int)

    Permalink

Abstract Value Members

  1. abstract def parallelism: Int

    Permalink

Concrete 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. final def eq(arg0: AnyRef): Boolean

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

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

    Permalink
  10. def finalize(): Unit

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

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

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

    Permalink
  14. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  15. val name: String

    Permalink
  16. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  19. val priority: Int

    Permalink
  20. def recycleThreadTimeMs: Long

    Permalink
  21. 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.

  22. def shutdownWaitTimeMs: Long

    Permalink
  23. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  24. val threadGroup: ThreadGroup

    Permalink
  25. val toString: String

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

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

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

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

    Permalink
    Attributes
    protected

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped