Packages

  • package root
    Definition Classes
    root
  • package csw
    Definition Classes
    root
  • package time
    Definition Classes
    csw
  • package scheduler

    This module provides implementation for Time Service Scheduler which provides APIs for scheduling periodic and non-periodic tasks in the future, which are optimised for scheduling at up to 1KHz frequency.

    This module provides implementation for Time Service Scheduler which provides APIs for scheduling periodic and non-periodic tasks in the future, which are optimised for scheduling at up to 1KHz frequency.

    For component developers, the scheduler API is injected in the ComponentHandlers. Hence for them, there is no need to create a csw.time.scheduler.api.TimeServiceScheduler instance.

    If you are not using csw-framework, you can create an instance like shown below.

    val scheduler: TimeServiceScheduler = TimeServiceSchedulerFactory.make()(actorSystem)

    In addition to the Scheduler API, this module also provides a csw.time.core.TMTTimeHelper API which provides additional time zone related functionality on top of csw.time.core.models.TMTTime. It allows users to get a java.time.ZonedDateTime representation of a TMTTime.

    Following is a small sample showing how to access utilities from TMTTimeHelper.

    TMTTimeHelper.atLocal(utcTime)
    TMTTimeHelper.atHawaii(utcTime)
    Definition Classes
    time
  • package api
    Definition Classes
    scheduler
  • Cancellable
  • TimeServiceScheduler

package api

Type Members

  1. trait Cancellable extends AnyRef

    API for a scheduled periodic task, that allows it to be cancelled.

  2. trait TimeServiceScheduler extends AnyRef

    Scheduler for scheduling periodic/non-periodic tasks at a specified time and/or interval.

    Scheduler for scheduling periodic/non-periodic tasks at a specified time and/or interval. It supports scheduling on both csw.time.core.models.UTCTime and csw.time.core.models.TAITime. Each API returns a Cancellable which allows users to cancel the execution of tasks. Please note that implementation of Scheduler is optimised for high-throughput and high-frequency events. It is not to be confused with long-term schedulers such as Quartz.

Ungrouped