Interface ScheduledController

All Superinterfaces:
org.teavm.jso.JSObject

public interface ScheduledController extends org.teavm.jso.JSObject
The controller Cloudflare passes to a scheduled handler.

Cron is what a handler sees. This is the JavaScript object it is read from.

Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the cron expression that fired.
    double
    Returns when the invocation was due, in milliseconds since the epoch.
    Returns the trigger type, such as scheduled.

    Methods inherited from interface org.teavm.jso.JSObject

    cast
  • Method Details

    • getCron

      String getCron()
      Returns the cron expression that fired.
      Returns:
      the cron expression that fired
    • getScheduledTime

      double getScheduledTime()
      Returns when the invocation was due, in milliseconds since the epoch.
      Returns:
      when the invocation was due, in milliseconds since the epoch
    • getType

      String getType()
      Returns the trigger type, such as scheduled.
      Returns:
      the trigger type, such as scheduled