AutoPilot Class |
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.
Namespace: Akka.TestKit
The AutoPilot type exposes the following members.
Name | Description | |
---|---|---|
KeepRunning |
When returned by another AutoPilot then TestActor
will reuse the AutoPilot for the next message.
| |
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.
|
Name | Description | |
---|---|---|
Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
Run | 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. | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
AsInstanceOfT |
TBD
(Defined by Extensions.) | |
Match | Overloaded.
Matches the specified target.
(Defined by PatternMatch.) | |
MatchT | Overloaded.
Matches the specified target and return a result of target processing.
(Defined by PatternMatch.) |