Class ScatterGatherFirstCompletedRoutingLogic
This class contains logic used by a Router to route a message to a Routee determined using scatter-gather-first-completed. This process has the router send a message to all of its routees. The first response is used and the remaining are discarded. If the none of the routees respond within a specified time limit, a timeout failure occurs.
Implements
Inherited Members
Namespace: Akka.Routing
Assembly: Akka.dll
Syntax
public sealed class ScatterGatherFirstCompletedRoutingLogic : RoutingLogic, INoSerializationVerificationNeeded
Constructors
| Improve this Doc View SourceScatterGatherFirstCompletedRoutingLogic(TimeSpan)
Initializes a new instance of the ScatterGatherFirstCompletedRoutingLogic class.
Declaration
public ScatterGatherFirstCompletedRoutingLogic(TimeSpan within)
Parameters
Type | Name | Description |
---|---|---|
TimeSpan | within | The amount of time to wait for a response. |
Methods
| Improve this Doc View SourceSelect(Object, Routee[])
Picks all the provided routees
to receive the message
.
Declaration
public override Routee Select(object message, Routee[] routees)
Parameters
Type | Name | Description |
---|---|---|
Object | message | The message that is being routed |
Routee[] | routees | A collection of routees to choose from when receiving the |
Returns
Type | Description |
---|---|
Routee | A Akka.Routing.ScatterGatherFirstCompletedRoutees that receives the |