Interface IRunnableScheduler
INTERNAL API
Convenience API for working with IRunnable
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public interface IRunnableScheduler
Methods
| Improve this Doc View SourceScheduleOnce(TimeSpan, IRunnable)
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, IRunnable action)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | delay | The time period that has to pass before the action is invoked. |
IRunnable | action | The action that is being scheduled. |
ScheduleOnce(TimeSpan, IRunnable, 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, IRunnable action, ICancelable cancelable)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | delay | The time period that has to pass before the action is invoked. |
IRunnable | action | The action that is being scheduled. |
ICancelable | cancelable | A cancelable used to cancel the action from being executed. |
ScheduleRepeatedly(TimeSpan, TimeSpan, IRunnable)
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, IRunnable 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. |
IRunnable | action | The action that is being scheduled. |
ScheduleRepeatedly(TimeSpan, TimeSpan, IRunnable, 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, IRunnable 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. |
IRunnable | action | The action that is being scheduled. |
ICancelable | cancelable | A cancelable used to cancel the action from being executed. |