Packages

c

fr.linkit.engine.internal.concurrency.pool

SimpleClosedWorkerPool

class SimpleClosedWorkerPool extends AbstractWorkerPool with ClosedWorkerPool

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SimpleClosedWorkerPool
  2. ClosedWorkerPool
  3. AbstractWorkerPool
  4. Closeable
  5. AutoCloseable
  6. WorkerPool
  7. ExecutionContext
  8. ProcrastinatorControl
  9. Procrastinator
  10. AnyRef
  11. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new SimpleClosedWorkerPool(initialThreadCount: Int, name: String)

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. def addWorker(worker: Worker): Unit
    Attributes
    protected
    Definition Classes
    AbstractWorkerPool
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. def close(): Unit
    Definition Classes
    SimpleClosedWorkerPoolAbstractWorkerPool → Closeable → AutoCloseable
  8. var closed: Boolean
    Attributes
    protected
    Definition Classes
    AbstractWorkerPool
  9. def countRemainingTasks: Int
    Attributes
    protected
    Definition Classes
    SimpleClosedWorkerPoolAbstractWorkerPool
  10. def currentTaskExecutionDepth: Int

    The Task Execution Depth is an int value that determines the number of tasks a thread is consequently executing.

    The Task Execution Depth is an int value that determines the number of tasks a thread is consequently executing.

    returns

    the task execution depth of the current thread

    Definition Classes
    AbstractWorkerPool
    Annotations
    @workerExecution()
    Exceptions thrown

    IllegalThreadException if the current thread is not a Worker

  11. def ensureCurrentThreadNotOwned(msg: String): Unit
    Definition Classes
    AbstractWorkerPool
  12. def ensureCurrentThreadNotOwned(): Unit
    Definition Classes
    AbstractWorkerPool
  13. def ensureCurrentThreadOwned(msg: String): Unit
    Definition Classes
    AbstractWorkerPoolWorkerPool
  14. def ensureCurrentThreadOwned(): Unit
    Definition Classes
    AbstractWorkerPoolWorkerPool
  15. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  17. def execute(runnable: Runnable): Unit
    Definition Classes
    AbstractWorkerPool → ExecutionContext
  18. def executeRemainingTasks(): Unit
    Definition Classes
    AbstractWorkerPool
  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  21. final def haveMoreTasks: Boolean
    Definition Classes
    AbstractWorkerPool
  22. def isCurrentThreadOwned: Boolean
    Definition Classes
    AbstractWorkerPoolWorkerPool
  23. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  24. val name: String
    Definition Classes
    AbstractWorkerPoolWorkerPool
  25. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  26. def newBusyQueue[A]: BlockingQueue[A]

    Creates a blocking queue that keep busy its thread instead of make it waiting the provided queue will use the busy threading system for concurrent operations such as BlockingQueue#take()

    Creates a blocking queue that keep busy its thread instead of make it waiting the provided queue will use the busy threading system for concurrent operations such as BlockingQueue#take()

    A

    the type of element the queue will contains

    returns

    a WorkerBlockingQueue

    Definition Classes
    AbstractWorkerPoolWorkerPool
  27. def nextTaskCount: Int
  28. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  29. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  30. def pauseCurrentTask(lock: Lock): Unit

    pauses the current task and look for executing other pending tasks while this task is paused

    pauses the current task and look for executing other pending tasks while this task is paused

    lock

    a lock to acquire until the current task is marked as paused.

    Definition Classes
    AbstractWorkerPoolWorkerPool
    Annotations
    @workerExecution()
    Exceptions thrown

    IllegalThreadException if the current thread is not a Worker

  31. def pauseCurrentTask(): Unit
    Definition Classes
    AbstractWorkerPoolWorkerPool
  32. def pauseCurrentTaskForAtLeast(timeoutMillis: Long): Unit

    Keep the current thread busy with task execution for at least x milliseconds.

    Keep the current thread busy with task execution for at least x milliseconds.

    timeoutMillis

    the number of milliseconds the thread must be busy.

    Definition Classes
    AbstractWorkerPoolWorkerPool
    Exceptions thrown

    IllegalThreadException if the current thread is not a Worker

  33. def pollTask: Runnable
    Attributes
    protected
    Definition Classes
    SimpleClosedWorkerPoolAbstractWorkerPool
  34. def post(runnable: Runnable): Unit
    Attributes
    protected
    Definition Classes
    SimpleClosedWorkerPoolAbstractWorkerPool
  35. def reportFailure(cause: Throwable): Unit
    Definition Classes
    AbstractWorkerPool → ExecutionContext
  36. def runLater(task: => Unit): Unit
    Definition Classes
    AbstractWorkerPoolProcrastinator
  37. def runLaterControl[A](task: => A): WorkerTask[A]

    Submits a task to the executor thread pool.

    Submits a task to the executor thread pool. The task will then be handled directly or right after a thread is looking for other task to schedule.

    task

    the task to execute in the thread pool

    Definition Classes
    AbstractWorkerPoolProcrastinatorControl
    Exceptions thrown

    IllegalStateException if the pool is closed

  38. def setThreadCount(newCount: Int): Unit
  39. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  40. def takeTask: Runnable
    Attributes
    protected
    Definition Classes
    SimpleClosedWorkerPoolAbstractWorkerPool
  41. def threadCount: Int
    Attributes
    protected
    Definition Classes
    AbstractWorkerPool
  42. def toString(): String
    Definition Classes
    AnyRef → Any
  43. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  44. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  46. val workers: ListBuffer[Worker]
    Attributes
    protected
    Definition Classes
    AbstractWorkerPool

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated
  2. def prepare(): ExecutionContext
    Definition Classes
    ExecutionContext
    Annotations
    @deprecated
    Deprecated

    (Since version 2.12.0) preparation of ExecutionContexts will be removed

Inherited from ClosedWorkerPool

Inherited from AbstractWorkerPool

Inherited from Closeable

Inherited from AutoCloseable

Inherited from WorkerPool

Inherited from ExecutionContext

Inherited from ProcrastinatorControl

Inherited from Procrastinator

Inherited from AnyRef

Inherited from Any

Ungrouped