Class Routee
Generic base class for routees.
Inherited Members
Namespace: Akka.Routing
Assembly: Akka.dll
Syntax
public class Routee
Fields
| Improve this Doc View SourceNoRoutee
Singleton instance for special case "no routee," for when no matching routees are found.
Declaration
public static readonly Routee NoRoutee
Field Value
Type | Description |
---|---|
Routee |
Methods
| Improve this Doc View SourceAsk(Object, Nullable<TimeSpan>)
Ask a routee for a reply message in response to an input.
Declaration
public virtual Task<object> Ask(object message, TimeSpan? timeout)
Parameters
Type | Name | Description |
---|---|---|
Object | message | The message to send. |
Nullable<TimeSpan> | timeout | Optional timeout parameter. If the parameter is provided and the operation times out, will throw an AskTimeoutException. |
Returns
Type | Description |
---|---|
Task<Object> | A Task containing the response object. |
FromActorRef(IActorRef)
Helper method to create a new Routee instance from an IActorRef.
Declaration
public static Routee FromActorRef(IActorRef actorRef)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | actorRef |
Returns
Type | Description |
---|---|
Routee |
Send(Object, IActorRef)
Send a message to the routee.
Declaration
public virtual void Send(object message, IActorRef sender)
Parameters
Type | Name | Description |
---|---|---|
Object | message | The message to send. |
IActorRef | sender | The sender, if any. |