Protected
Protected

Scheduler


Akka has a little scheduler written using actors. Can be convenient if you want to schedule some periodic task for maintenance or similar.

It allows you to register a message that you want to be sent to a specific actor at a periodic interval. Here is an example:

Scheduler.schedule(receiverActor, messageToBeSent, initialDelayBeforeSending, delayBetweenMessages, timeUnit)
Home
close
Loading...
Home Turn Off "Getting Started"
close
Loading...