com.gilt.gfc.concurrent

JScheduledExecutorServiceWrapper

Related Doc: package concurrent

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
Learn more about member selection
Visibility
  1. Public
  2. All

Abstract Value Members

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

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  4. def asCallable[T](f: ⇒ T): Callable[T]

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

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

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

    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[_]

    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[_]

    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

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

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

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

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

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

  16. def finalize(): Unit

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

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

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

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

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

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

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

    Definition Classes
    Any
  24. def isShutdown(): Boolean

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Definition Classes
    AnyRef
  43. def toString(): String

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

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

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

    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