Wraps event bus to provide exchanging messages with previously created scheduler.
The object implementing interface is returned by connectToScheduler().

By: Lis
Since 0.2.0

no type hierarchy

no supertypes hierarchy

no subtypes hierarchy

Attributes
nameshared formal String name

Name of the scheduler.

Inherited Attributes
Attributes inherited from: Object
hash, string
Methods
createCronTimershared formal void createCronTimer(Anything(Timer|Throwable) handler, String seconds, String minutes, String hours, String daysOfMonth, String months, String? daysOfWeek = null, String? years = null, String? timerName = null, Boolean paused = false, Boolean publish = false, Integer? maxCount = null, DateTime? startDate = null, DateTime? endDate = null, String? timeZone = null)

Creates cron timer.

Parameters:
  • handler

    Callback when timer created.

  • seconds

    Seconds.

  • minutes

    Minutes.

  • hours

    Hours.

  • daysOfMonth

    Days of month.

  • months

    Months.

  • daysOfWeek = null

    Optional days of week.

  • years = null

    Optional years.

  • timerName = null

    Timer name. Timer address is timer full name, i.e. “scheduler name:timer name”.

  • paused = false

    True if timer is paused at initial and false if running.

  • publish = false

    True if timer has to publish event and false if sends.

  • maxCount = null

    Maximum number of fires or null if unlimited.

  • startDate = null

    Timer start date.

  • endDate = null

    Timer end date.

  • timeZone = null

    Time zone.

createIntervalTimershared formal void createIntervalTimer(Anything(Timer|Throwable) handler, Integer delay, String? timerName = null, Boolean paused = false, Boolean publish = false, Integer? maxCount = null, DateTime? startDate = null, DateTime? endDate = null, String? timeZone = null)

Creates interval timer.

Parameters:
  • handler

    Callback when timer created.

  • delay

    Interval timer delay in seconds.

  • timerName = null

    Timer name. Timer address is timer full name, i.e. “scheduler name:timer name”.

  • paused = false

    True if timer is paused at initial and false if running.

  • publish = false

    True if timer has to publish event and false if sends.

  • maxCount = null

    Maximum number of fires or null if unlimited.

  • startDate = null

    Timer start date.

  • endDate = null

    Timer end date.

  • timeZone = null

    Time zone.

deleteshared formal void delete()

Removes this scheduler.

infoshared formal void info(Anything(Throwable|SchedulerInfo) info)

Requests scheduler info.

Parameters:
  • info

    Info handler.

pauseshared formal void pause()

Pauses this scheduler.

See also resume()
resumeshared formal void resume()

Resumes this scheduler after pausing.

See also pause()
Inherited Methods
Methods inherited from: Object
equals