final case class ScheduledTaskRunner(name: String, executor: ScheduledThreadPoolExecutor) extends TaskRunnerNonPriority with Product with Serializable
- Annotations
- @implicitNotFound("""Cannot find an implicit ScheduledTaskRunner. You might pass
an (implicit st: ScheduledTaskRunner) parameter to your method
or import fm.common.ScheduledTaskRunner.Implicits.global.""") - Source
- ScheduledTaskRunner.scala
- Alphabetic
- By Inheritance
- ScheduledTaskRunner
- Serializable
- Product
- Equals
- TaskRunnerNonPriority
- TaskRunnerBase
- Logging
- Closeable
- AutoCloseable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Instance Constructors
- new ScheduledTaskRunner(name: String, executor: ScheduledThreadPoolExecutor)
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
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def execute(f: => Unit): Unit
- Definition Classes
- TaskRunnerNonPriority
- val executor: ScheduledThreadPoolExecutor
- Attributes
- protected
- Definition Classes
- ScheduledTaskRunner → TaskRunnerBase
- def finalize(): Unit
- Definition Classes
- TaskRunnerBase → AnyRef
- final def getClass(): Class[_ <: AnyRef]
- 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 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()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- def schedule[T](duration: FiniteDuration)(f: => T): ScheduledFuture[T]
Creates and executes a one-shot action that becomes enabled after the given delay.
- def schedule(runnable: Runnable, duration: FiniteDuration): ScheduledTask
Creates and executes a one-shot action that becomes enabled after the given delay.
- def scheduleAtFixedRate[U](initialDelay: FiniteDuration, delay: FiniteDuration)(f: => U): ScheduledTask
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given period; that is executions will commence after initialDelay then initialDelay+period, then initialDelay + 2 * period, and so on.
- def scheduleWithFixedDelay[U](initialDelay: FiniteDuration, delay: FiniteDuration)(f: => U): ScheduledTask
Creates and executes a periodic action that becomes enabled first after the given initial delay, and subsequently with the given delay between the termination of one execution and the commencement of the next.
- final def scoped(f: (ScheduledTaskRunner.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](f: => T): Future[T]
- Definition Classes
- TaskRunnerNonPriority
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def tryExecute(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
- Definition Classes
- TaskRunnerNonPriority
- final def trySubmit[T](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
- Definition Classes
- TaskRunnerNonPriority
- 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])