Package dev.gmitch215.bytebox
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 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 asscheduled.- Returns:
- the trigger type, such as
scheduled
-