Schedule class
Constructors
-
Schedule(String name, {ResourcesClient? client, SchedulesClient? schedulesClient})
-
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
name
→ String
-
The name of the resource.
finalinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
asRequest()
→ ResourceDeclareRequest
-
override
-
cron(String cronExpression, IntervalHandler middleware)
→ Future<void>
-
Run
middleware
at a certain interval defined by the cronExpression
.
-
every(String rate, IntervalHandler middleware)
→ Future<void>
-
Run
middleware
at a certain interval defined by the rate
. E.g. '7 days', '3 hours', '30 minutes'.
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
register()
→ Future<void>
-
Register the resource with the Nitric server. Handles shutting down the channel.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited