Class ActorRefRoutee
Inherited Members
Namespace: Akka.Routing
Assembly: Akka.dll
Syntax
public class ActorRefRoutee : Routee
Constructors
| Edit this page View SourceActorRefRoutee(IActorRef)
Declaration
public ActorRefRoutee(IActorRef actor)
Parameters
| Type | Name | Description |
|---|---|---|
| IActorRef | actor |
Properties
| Edit this page View SourceActor
The IActorRef this routee sends messages to.
Declaration
public IActorRef Actor { get; }
Property Value
| Type | Description |
|---|---|
| IActorRef |
Methods
| Edit this page View SourceAsk(object, TimeSpan?)
Ask a routee for a reply message in response to an input.
Declaration
public override Task<object> Ask(object message, TimeSpan? timeout)
Parameters
| Type | Name | Description |
|---|---|---|
| object | message | The message to send. |
| 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. |
Overrides
| Edit this page View SourceEquals(ActorRefRoutee)
Declaration
protected bool Equals(ActorRefRoutee other)
Parameters
| Type | Name | Description |
|---|---|---|
| ActorRefRoutee | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
| Edit this page View SourceGetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
| Edit this page View SourceSend(object, IActorRef)
Send a message to the routee.
Declaration
public override void Send(object message, IActorRef sender)
Parameters
| Type | Name | Description |
|---|---|---|
| object | message | The message to send. |
| IActorRef | sender | The sender, if any. |
Edit this page