Interface ITellScheduler
This interface defines a scheduler that is able to send messages on a set schedule.
Namespace: Akka.Actor
Assembly: Akka.dll
Syntax
public interface ITellScheduler
Methods
| Improve this Doc View SourceScheduleTellOnce(TimeSpan, ICanTell, Object, IActorRef)
Schedules a message to be sent once after a specified period of time.
Declaration
void ScheduleTellOnce(TimeSpan delay, ICanTell receiver, object message, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | delay | The time period that has to pass before the message is sent. |
ICanTell | receiver | The actor that receives the message. |
Object | message | The message that is being sent. |
IActorRef | sender | The actor that sent the message. |
ScheduleTellOnce(TimeSpan, ICanTell, Object, IActorRef, ICancelable)
Schedules a message to be sent once after a specified period of time.
Declaration
void ScheduleTellOnce(TimeSpan delay, ICanTell receiver, object message, IActorRef sender, ICancelable cancelable)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | delay | The time period that has to pass before the message is sent. |
ICanTell | receiver | The actor that receives the message. |
Object | message | The message that is being sent. |
IActorRef | sender | The actor that sent the message. |
ICancelable | cancelable | A cancelable used to cancel sending the message. Once the message has been sent, it cannot be canceled. |
ScheduleTellRepeatedly(TimeSpan, TimeSpan, ICanTell, Object, IActorRef)
Schedules a message to be sent repeatedly after an initial delay.
Declaration
void ScheduleTellRepeatedly(TimeSpan initialDelay, TimeSpan interval, ICanTell receiver, object message, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | initialDelay | The time period that has to pass before the first message is sent. |
TimeSpan | interval | The time period that has to pass between sending of the message. |
ICanTell | receiver | The actor that receives the message. |
Object | message | The message that is being sent. |
IActorRef | sender | The actor that sent the message. |
ScheduleTellRepeatedly(TimeSpan, TimeSpan, ICanTell, Object, IActorRef, ICancelable)
Schedules a message to be sent repeatedly after an initial delay.
Declaration
void ScheduleTellRepeatedly(TimeSpan initialDelay, TimeSpan interval, ICanTell receiver, object message, IActorRef sender, ICancelable cancelable)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | initialDelay | The time period that has to pass before the first message is sent. |
TimeSpan | interval | The time period that has to pass between sending of the message. |
ICanTell | receiver | The actor that receives the message. |
Object | message | The message that is being sent. |
IActorRef | sender | The actor that sent the message. |
ICancelable | cancelable | An cancelable used to cancel sending the message. Once the message has been sent, it cannot be canceled. |