Interface IActionScheduler
This interface defines a scheduler that is able to execute actions on a set schedule.
Inherited Members
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public interface IActionScheduler : IRunnableScheduler
Methods
| Improve this Doc View SourceScheduleOnce(TimeSpan, Action)
Schedules an action to be invoked after a delay. The action is wrapped so that it
completes inside the currently active actor if it is called from within an actor.
Declaration
void ScheduleOnce(TimeSpan delay, Action action)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | delay | The time period that has to pass before the action is invoked. |
Action | action | The action that is being scheduled. |
ScheduleOnce(TimeSpan, Action, ICancelable)
Schedules an action to be invoked after a delay. The action is wrapped so that it
completes inside the currently active actor if it is called from within an actor.
Declaration
void ScheduleOnce(TimeSpan delay, Action action, ICancelable cancelable)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | delay | The time period that has to pass before the action is invoked. |
Action | action | The action that is being scheduled. |
ICancelable | cancelable | A cancelable used to cancel the action from being executed. |
ScheduleRepeatedly(TimeSpan, TimeSpan, Action)
Schedules an action to be invoked after an initial delay and then repeatedly.
The action is wrapped so that it completes inside the currently active actor
if it is called from within an actor.
Declaration
void ScheduleRepeatedly(TimeSpan initialDelay, TimeSpan interval, Action action)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | initialDelay | The time period that has to pass before first invocation of the action. |
TimeSpan | interval | The time period that has to pass between each invocation of the action. |
Action | action | The action that is being scheduled. |
ScheduleRepeatedly(TimeSpan, TimeSpan, Action, ICancelable)
Schedules an action to be invoked after an initial delay and then repeatedly.
The action is wrapped so that it completes inside the currently active actor
if it is called from within an actor.
Declaration
void ScheduleRepeatedly(TimeSpan initialDelay, TimeSpan interval, Action action, ICancelable cancelable)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | initialDelay | The time period that has to pass before first invocation of the action. |
TimeSpan | interval | The time period that has to pass between each invocation of the action. |
Action | action | The action that is being scheduled. |
ICancelable | cancelable | A cancelable used to cancel the action from being executed. |