Class/Object

com.nthportal.testing.concurrent

ManualExecutor

Related Docs: object ManualExecutor | package concurrent

Permalink

final class ManualExecutor extends Executor

An Executor whose tasks can be executed manually in the current thread when desired, for fine-grained control over when tasks are executed.

Linear Supertypes
Executor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. ManualExecutor
  2. Executor
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new ManualExecutor()

    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. object Implicits

    Permalink

    Contains this Executor as an implicit ExecutionContext.

  5. final def asInstanceOf[T0]: T0

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  7. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef → Any
  9. def execute(runnable: Runnable): Unit

    Permalink
    Definition Classes
    ManualExecutor → Executor
  10. def executeAll(): Int

    Permalink

    Executes all tasks waiting to be executed.

    Executes all tasks waiting to be executed.

    returns

    the number of tasks executed

  11. def executeAtMost(count: Int): Int

    Permalink

    Executes count tasks waiting to be executed, or all tasks if there are fewer waiting.

    Executes count tasks waiting to be executed, or all tasks if there are fewer waiting.

    count

    the maximum number of tasks to execute

  12. def executeNext(): Unit

    Permalink

    Executes the next waiting task.

    Executes the next waiting task.

    Annotations
    @throws( ... )
    Exceptions thrown

    NoSuchElementException if there is no task waiting to be executed

  13. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  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. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  21. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  22. def tryExecuteNext(): Boolean

    Permalink

    Executes the next waiting task, if one exists.

    Executes the next waiting task, if one exists.

    returns

    true if the next tasks was executed; false if there are no tasks waiting

  23. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. def waitingTasks: Int

    Permalink

    Returns the number of tasks waiting to be executed.

    Returns the number of tasks waiting to be executed.

    returns

    the number of tasks waiting to be executed

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped