Class/Object

fm.common

PriorityTaskRunner

Related Docs: object PriorityTaskRunner | package common

Permalink

final class PriorityTaskRunner extends TaskRunnerBase

Similar to a TaskRunner but allows you to pass in a priority value such that lower priority tasks will execute before higher priority tasks.

Linear Supertypes
TaskRunnerBase, Logging, Closeable, AutoCloseable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. PriorityTaskRunner
  2. TaskRunnerBase
  3. Logging
  4. Closeable
  5. AutoCloseable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PriorityTaskRunner(name: String, coreThreads: Int, maxThreads: Int, queueSize: Int)

    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 abort(maxWaitSeconds: Int = 5): Unit

    Permalink

    Perform an unclean shutdown of the executor only waiting up to maxWaitSeconds

    Perform an unclean shutdown of the executor only waiting up to maxWaitSeconds

    Definition Classes
    TaskRunnerBase
  5. final def asInstanceOf[T0]: T0

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

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

    Permalink
    Definition Classes
    TaskRunnerBase → Closeable → AutoCloseable
  8. val coreThreads: Int

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def execute(priority: Long)(f: ⇒ Unit): Unit

    Permalink
  12. val executor: ThreadPoolExecutor

    Permalink
    Attributes
    protected
    Definition Classes
    PriorityTaskRunnerTaskRunnerBase
  13. def finalize(): Unit

    Permalink
    Definition Classes
    TaskRunnerBase → AnyRef
  14. final def getClass(): Class[_]

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

    Permalink
    Definition Classes
    AnyRef → Any
    Annotations
    @HotSpotIntrinsicCandidate()
  16. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  17. lazy val logger: Logger

    Permalink
    Attributes
    protected
    Definition Classes
    Logging
  18. val maxThreads: Int

    Permalink
  19. val name: String

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  22. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @HotSpotIntrinsicCandidate()
  23. val queueSize: Int

    Permalink
  24. final def scoped(f: (PriorityTaskRunner.this.type) ⇒ Unit): Unit

    Permalink
    Definition Classes
    TaskRunnerBase
  25. final def shutdown(silent: Boolean = false, warnIntervalSeconds: Int = 30): Unit

    Permalink

    Perform a "clean" shutdown of the executor by waiting for all tasks to finish

    Perform a "clean" shutdown of the executor by waiting for all tasks to finish

    Definition Classes
    TaskRunnerBase
  26. lazy val shutdownWarning: Boolean

    Permalink
    Attributes
    protected
    Definition Classes
    TaskRunnerBase
  27. final def size: Int

    Permalink
    Definition Classes
    TaskRunnerBase
  28. final def submit[T](priority: Long)(f: ⇒ T): Future[T]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  31. final def tryExecute(priority: Long)(f: ⇒ Unit): Boolean

    Permalink

    Attempt to submit this job to the queue.

    Attempt to submit this job to the queue. Returns true if successful or false if the queue is full

  32. final def trySubmit[T](priority: Long)(f: ⇒ T): Option[Future[T]]

    Permalink

    Attempt to submit this job to the queue.

    Attempt to submit this job to the queue. Returns Some(...) if successful or None if the queue is full

  33. final def wait(arg0: Long, arg1: Int): Unit

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from TaskRunnerBase

Inherited from Logging

Inherited from Closeable

Inherited from AutoCloseable

Inherited from AnyRef

Inherited from Any

Ungrouped