Scheduler
You can schedule sending messages to actor that will be acted upon in the future. To achieve that you can use the following methods on the Actor System:
ScheduleOnce
- will send the given message to a local actor once after a given intervalSchedule
- will send the given message to a local actor at a given intervalRemoteSchedule
- will send the given message to a remote actor at a given interval. This requires remoting to be enabled on the actor system.RemoteScheduleOnce
- will send the given message to a remote actor once after a given interval. This requires remoting to be enabled on the actor system.ScheduleWithCron
- will send the given message to a local actor using a cron expression.RemoteScheduleWithCron
- will send the given message to a remote actor using a cron expression. This requires remoting to be enabled on the actor system.
Cron Expression Format
Seconds
yes
0-59
, - * /
Minutes
yes
0-59
, - * /
Hours
yes
0-23
, - * /
Day of month
yes
1-31
, - * ? /
Month
yes
1-12 or JAN-DEC
, - * /
Day of week
yes
1-7 or SUN-SAT
, - * ? /
Year
no
empty, 1970-
, - * /
Note
When running the actor system in a cluster only one instance of a given scheduled message will be running across the entire cluster.
Last updated