Trait

com.gilt.gfc.concurrent

AsyncScheduledExecutorService

Related Doc: package concurrent

Permalink

trait AsyncScheduledExecutorService extends ScheduledExecutorService

Functions for scheduling of asynchronous tasks

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

Abstract Value Members

  1. abstract def asyncSchedule(initialDelay: FiniteDuration, delayUntilNext: (FiniteDuration) ⇒ FiniteDuration)(futureTask: ⇒ Future[_])(implicit ec: ExecutionContext = ExecutionContext.fromExecutor(this)): 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

    ec

    implicit ExecutionContext to schedule the Future's completion handler. By default uses this Executor.

    returns

    a ScheduledFuture representing pending completion of the task.

  2. abstract def awaitTermination(arg0: Long, arg1: TimeUnit): Boolean

    Permalink
    Definition Classes
    ExecutorService
    Annotations
    @throws( ... )
  3. abstract def execute(f: ⇒ Unit): Unit

    Permalink
    Definition Classes
    ExecutorService
  4. abstract def execute(arg0: Runnable): Unit

    Permalink
    Definition Classes
    Executor
  5. abstract def invokeAll[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): List[Future[T]]

    Permalink
    Definition Classes
    ExecutorService
    Annotations
    @throws( ... )
  6. abstract def invokeAll[T](arg0: Collection[_ <: Callable[T]]): List[Future[T]]

    Permalink
    Definition Classes
    ExecutorService
    Annotations
    @throws( ... )
  7. abstract def invokeAny[T](arg0: Collection[_ <: Callable[T]], arg1: Long, arg2: TimeUnit): T

    Permalink
    Definition Classes
    ExecutorService
    Annotations
    @throws( ... ) @throws( ... ) @throws( ... )
  8. abstract def invokeAny[T](arg0: Collection[_ <: Callable[T]]): T

    Permalink
    Definition Classes
    ExecutorService
    Annotations
    @throws( ... ) @throws( ... )
  9. abstract def isShutdown(): Boolean

    Permalink
    Definition Classes
    ExecutorService
  10. abstract def isTerminated(): Boolean

    Permalink
    Definition Classes
    ExecutorService
  11. abstract def schedule[V](delay: FiniteDuration)(f: ⇒ V): ScheduledFuture[V]

    Permalink
    Definition Classes
    ScheduledExecutorService
  12. abstract def schedule[V](arg0: Callable[V], arg1: Long, arg2: TimeUnit): ScheduledFuture[V]

    Permalink
    Definition Classes
    ScheduledExecutorService
  13. abstract def schedule(arg0: Runnable, arg1: Long, arg2: TimeUnit): ScheduledFuture[_]

    Permalink
    Definition Classes
    ScheduledExecutorService
  14. abstract def scheduleAtFixedRate(initialDelay: FiniteDuration, period: FiniteDuration)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
    Definition Classes
    ScheduledExecutorService
  15. abstract def scheduleAtFixedRate(arg0: Runnable, arg1: Long, arg2: Long, arg3: TimeUnit): ScheduledFuture[_]

    Permalink
    Definition Classes
    ScheduledExecutorService
  16. abstract def scheduleWithFixedDelay(initialDelay: FiniteDuration, delay: FiniteDuration)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
    Definition Classes
    ScheduledExecutorService
  17. abstract def scheduleWithFixedDelay(arg0: Runnable, arg1: Long, arg2: Long, arg3: TimeUnit): ScheduledFuture[_]

    Permalink
    Definition Classes
    ScheduledExecutorService
  18. abstract def shutdown(): Unit

    Permalink
    Definition Classes
    ExecutorService
  19. abstract def shutdownNow(): List[Runnable]

    Permalink
    Definition Classes
    ExecutorService
  20. abstract def submit[T](f: ⇒ T): Future[T]

    Permalink
    Definition Classes
    ExecutorService
  21. abstract def submit(arg0: Runnable): Future[_]

    Permalink
    Definition Classes
    ExecutorService
  22. abstract def submit[T](arg0: Runnable, arg1: T): Future[T]

    Permalink
    Definition Classes
    ExecutorService
  23. abstract def submit[T](arg0: Callable[T]): Future[T]

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

    Permalink
    Definition Classes
    ScheduledExecutorService
    Annotations
    @deprecated
    Deprecated

    Use schedule(FiniteDuration)

  25. abstract def scheduleAtFixedRate(initialDelay: Long, period: Long, timeUnit: TimeUnit)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
    Definition Classes
    ScheduledExecutorService
    Annotations
    @deprecated
    Deprecated

    Use scheduleAtFixedRate(FiniteDuration, FiniteDuration)

  26. abstract def scheduleWithFixedDelay(initialDelay: Long, delay: Long, timeUnit: TimeUnit)(f: ⇒ Unit): ScheduledFuture[_]

    Permalink
    Definition Classes
    ScheduledExecutorService
    Annotations
    @deprecated
    Deprecated

    Use scheduleWithFixedDelay(FiniteDuration, FiniteDuration)

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. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. 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.

  6. 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.

  7. def clone(): AnyRef

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  10. def finalize(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  13. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  14. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  17. final def synchronized[T0](arg0: ⇒ T0): T0

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

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

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

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

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

Inherited from ScheduledExecutorService

Inherited from ExecutorService

Inherited from java.util.concurrent.ScheduledExecutorService

Inherited from java.util.concurrent.ExecutorService

Inherited from Executor

Inherited from AnyRef

Inherited from Any

Ungrouped