Class AutoPilot
Creates an AutoPilot.
An AutoPilot will be called for each received message and can be used to send or forward messages, etc.
Each invocation must return the AutoPilot for the next round.
To reuse an AutoPilot for the next message either return the instance or return KeepRunning.
Return NoAutoPilot to stop handling messages.
Inherited Members
Namespace: Akka.TestKit
Assembly: Akka.TestKit.dll
Syntax
public abstract class AutoPilot
Properties
| Improve this Doc View SourceKeepRunning
Declaration
public static KeepRunning KeepRunning { get; }
Property Value
Type | Description |
---|---|
KeepRunning |
NoAutoPilot
When returned by another AutoPilot then no action will be performed by the TestActor for the next message. This is the default AutoPilot used by AutoPilot.
Declaration
public static NoAutoPilot NoAutoPilot { get; }
Property Value
Type | Description |
---|---|
NoAutoPilot |
Methods
| Improve this Doc View SourceRun(IActorRef, Object)
This function will be called for each received message and can be used to send or forward messages, etc.
Each invocation must return the AutoPilot for the next round.
Declaration
public abstract AutoPilot Run(IActorRef sender, object message)
Parameters
Type | Name | Description |
---|---|---|
IActorRef | sender | The sender. |
Object | message | The message. |
Returns
Type | Description |
---|---|
AutoPilot | The AutoPilot to be used for the next round |