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.
- Source
- PriorityTaskRunner.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- PriorityTaskRunner
- TaskRunnerBase
- Logging
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def abort(maxWaitSeconds: Int = 5): Unit
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
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def close(): Unit
- Definition Classes
- TaskRunnerBase → Closeable → AutoCloseable
- val coreThreads: Int
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def execute(priority: Long)(f: => Unit): Unit
- val executor: ThreadPoolExecutor
- Attributes
- protected
- Definition Classes
- PriorityTaskRunner → TaskRunnerBase
- def finalize(): Unit
- Definition Classes
- TaskRunnerBase → AnyRef
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- lazy val logger: Logger
- Attributes
- protected
- Definition Classes
- Logging
- Annotations
- @transient()
- val maxThreads: Int
- val name: String
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- val queueSize: Int
- final def scoped(f: (PriorityTaskRunner.this.type) => Unit): Unit
- Definition Classes
- TaskRunnerBase
- final def shutdown(silent: Boolean = false, warnIntervalSeconds: Int = 30): Unit
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
- lazy val shutdownWarning: Boolean
- Attributes
- protected
- Definition Classes
- TaskRunnerBase
- final def size: Int
- Definition Classes
- TaskRunnerBase
- final def submit[T](priority: Long)(f: => T): Future[T]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def tryExecute(priority: Long)(f: => Unit): Boolean
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
- final def trySubmit[T](priority: Long)(f: => T): Option[Future[T]]
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
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])