csw.time.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.

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)

Attributes

Members list

Packages

Type members

Classlikes

class TimeServiceSchedulerFactory(implicit scheduler: Scheduler)

Value parameters

scheduler

an scheduler required for scheduling tasks

Attributes

Supertypes
class Object
trait Matchable
class Any