Trait

com.gilt.gfc.concurrent

JScheduledExecutorServiceWrapper

Related Doc: package concurrent

Permalink

trait JScheduledExecutorServiceWrapper extends JExecutorServiceWrapper with AsyncScheduledExecutorService

Wrapper of a java.util.concurrent.ScheduledExecutorService implementing the com.gilt.gfc.concurrent.AsyncScheduledExecutorService trait.

Linear Supertypes
AsyncScheduledExecutorService, ScheduledExecutorService, java.util.concurrent.ScheduledExecutorService, JExecutorServiceWrapper, ExecutorService, java.util.concurrent.ExecutorService, Executor, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. JScheduledExecutorServiceWrapper
  2. AsyncScheduledExecutorService
  3. ScheduledExecutorService
  4. ScheduledExecutorService
  5. JExecutorServiceWrapper
  6. ExecutorService
  7. ExecutorService
  8. Executor
  9. AnyRef
  10. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def executorService: java.util.concurrent.ScheduledExecutorService

    Permalink

Concrete 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. def asCallable[T](f: ⇒ T): Callable[T]

    Permalink
    Attributes
    protected
    Definition Classes
    JExecutorServiceWrapper
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asRunnable[T](f: ⇒ T): Runnable

    Permalink
    Attributes
    protected
    Definition Classes
    JExecutorServiceWrapper
  7. def asyncSchedule(initialDelay: FiniteDuration, delayUntilNext: (FiniteDuration) ⇒ FiniteDuration)(futureTask: ⇒ Future[_])(implicit executor: ExecutionContext): ScheduledFuture[_]

    Permalink

    Similar to asyncScheduleWithFixedDelay and asyncScheduleWithFixedDelay this function repeatedly executes an asynchronous task.

    Similar to asyncScheduleWithFixedDelay and asyncScheduleWithFixedDelay this function repeatedly executes an asynchronous task. It is triggered first after the given initial delay, and subsequently after the duration returned by calling the delayUntilNext function. The parameter passed into the function is the duration that the task took to complete, i.e. the time between triggering a new Future and the completion of the same future. Exceptions while triggering a Future and failed Futures will _not_ suppress scheduling of subsequent executions. The task can be terminated via cancellation of the returned ScheduledFuture or via termination of the executor.

    initialDelay

    the time to delay first execution

    delayUntilNext

    function to compute the delay until the next task is scheduled. The parameter is the duration of the previous task. The function may return a negative duration in which case the next Future is triggered immediately.

    futureTask

    function that returns a Future that asynchronously executes a task iteration

    returns

    a ScheduledFuture representing pending completion of the task.

    Definition Classes
    JScheduledExecutorServiceWrapperAsyncScheduledExecutorService
  8. def asyncScheduleAtFixedRate(initialDelay: FiniteDuration, period: FiniteDuration)(futureTask: ⇒ Future[_])(implicit ec: ExecutionContext): ScheduledFuture[_]

    Permalink

    Similar to java.util.concurrent.ScheduledExecutorService.scheduleAtFixedRate this function executes an asynchronous periodic task.

    Similar to java.util.concurrent.ScheduledExecutorService.scheduleAtFixedRate this function executes an asynchronous periodic task. It is triggered first after the given initial delay, and subsequently with the given period. The next task is only scheduled when the previous task's future has completed. Hence, if any execution of this task takes longer than its period, then subsequent executions will start late and will not concurrently execute. Different to scheduleAtFixedRate, Exceptions while triggering a Future and failed Futures will _not_ suppress scheduling of subsequent executions. The task can be terminated via cancellation of the returned ScheduledFuture or via termination of the executor.

    initialDelay

    the time to delay first execution

    period

    the period between successive executions

    futureTask

    function that returns a Future that asynchronously executes a task iteration

    ec

    implicit ExecutionContext to schedule the Future's completion handler. Recommended to use ExecutionContext.fromExecutor(thisExecutor)

    returns

    a ScheduledFuture representing pending completion of the task.

    Definition Classes
    AsyncScheduledExecutorService
  9. def asyncScheduleWithFixedDelay(initialDelay: FiniteDuration, delay: FiniteDuration)(futureTask: ⇒ Future[_])(implicit ec: ExecutionContext = ExecutionContext.fromExecutor(this)): ScheduledFuture[_]

    Permalink

    Similar to java.util.concurrent.ScheduledExecutorService.scheduleWithFixedDelay this function executes an asynchronous periodic task.

    Similar to java.util.concurrent.ScheduledExecutorService.scheduleWithFixedDelay this function executes an asynchronous periodic task. It is triggered first after the given initial delay, and subsequently after the given delay between the completion of one execution and the commencement of the next. Different to scheduleWithFixedDelay, Exceptions while triggering a Future and failed Futures will _not_ suppress scheduling of subsequent executions. The task can be terminated via cancellation of the returned ScheduledFuture or via termination of the executor.

    initialDelay

    the time to delay first execution

    delay

    the delay between the completion of one Future and the triggering of the next

    futureTask

    function that returns a Future that asynchronously executes a task iteration

    ec

    implicit ExecutionContext to schedule the Future's completion handler. Recommended to use ExecutionContext.fromExecutor(thisExecutor)

    returns

    a ScheduledFuture representing pending completion of the task.

    Definition Classes
    AsyncScheduledExecutorService
  10. def awaitTermination(timeout: Long, unit: TimeUnit): Boolean

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  11. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  14. def execute(r: Runnable): Unit

    Permalink
    Definition Classes
    JExecutorServiceWrapper → Executor
  15. def execute(f: ⇒ Unit): Unit

    Permalink
  16. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  19. def invokeAll[T](tasks: Collection[_ <: Callable[T]]): List[Future[T]]

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  20. def invokeAll[T](tasks: Collection[_ <: Callable[T]], timeout: Long, timeUnit: TimeUnit): List[Future[T]]

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  21. def invokeAny[T](tasks: Collection[_ <: Callable[T]]): T

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  22. def invokeAny[T](tasks: Collection[_ <: Callable[T]], timeout: Long, timeUnit: TimeUnit): T

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def isShutdown(): Boolean

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  25. def isTerminated(): Boolean

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  26. final def ne(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    AnyRef
  28. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  29. def schedule[V](delay: Long, timeUnit: TimeUnit)(f: ⇒ V): ScheduledFuture[V]

    Permalink
  30. def schedule[V](delay: FiniteDuration)(f: ⇒ V): ScheduledFuture[V]

    Permalink
  31. def schedule(r: Runnable, delay: Long, timeUnit: TimeUnit): ScheduledFuture[_]

    Permalink
    Definition Classes
    JScheduledExecutorServiceWrapper → ScheduledExecutorService
  32. def schedule[V](c: Callable[V], delay: Long, timeUnit: TimeUnit): ScheduledFuture[V]

    Permalink
    Definition Classes
    JScheduledExecutorServiceWrapper → ScheduledExecutorService
  33. def scheduleAtFixedRate(initialDelay: Long, period: Long, timeUnit: TimeUnit)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
  34. def scheduleAtFixedRate(initialDelay: FiniteDuration, period: FiniteDuration)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
  35. def scheduleAtFixedRate(r: Runnable, initialDelay: Long, period: Long, timeUnit: TimeUnit): ScheduledFuture[_]

    Permalink
    Definition Classes
    JScheduledExecutorServiceWrapper → ScheduledExecutorService
  36. def scheduleWithFixedDelay(initialDelay: Long, delay: Long, timeUnit: TimeUnit)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
  37. def scheduleWithFixedDelay(initialDelay: FiniteDuration, delay: FiniteDuration)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
  38. def scheduleWithFixedDelay(r: Runnable, initialDelay: Long, delay: Long, timeUnit: TimeUnit): ScheduledFuture[_]

    Permalink
    Definition Classes
    JScheduledExecutorServiceWrapper → ScheduledExecutorService
  39. def shutdown(): Unit

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  40. def shutdownNow(): List[Runnable]

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  41. def submit[T](c: Callable[T]): Future[T]

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  42. def submit[T](r: Runnable, default: T): Future[T]

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  43. def submit(r: Runnable): Future[_]

    Permalink
    Definition Classes
    JExecutorServiceWrapper → ExecutorService
  44. def submit[T](f: ⇒ T): Future[T]

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  47. final def wait(): Unit

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

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

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

Inherited from ScheduledExecutorService

Inherited from java.util.concurrent.ScheduledExecutorService

Inherited from JExecutorServiceWrapper

Inherited from ExecutorService

Inherited from java.util.concurrent.ExecutorService

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped