C# Class Akka.Routing.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.
Inheritance: RoutingLogic
Datei anzeigen Open project: rogeralsing/akka.net

Public Methods

Method Description
ScatterGatherFirstCompletedRoutingLogic ( System.TimeSpan within ) : System

Initializes a new instance of the ScatterGatherFirstCompletedRoutingLogic class.

Select ( object message, Routee routees ) : Routee

Picks all the provided routees to receive the message.

Method Details

ScatterGatherFirstCompletedRoutingLogic() public method

Initializes a new instance of the ScatterGatherFirstCompletedRoutingLogic class.
public ScatterGatherFirstCompletedRoutingLogic ( System.TimeSpan within ) : System
within System.TimeSpan The amount of time to wait for a response.
return System

Select() public method

Picks all the provided routees to receive the message.
public Select ( object message, Routee routees ) : Routee
message object The message that is being routed
routees Routee A collection of routees to choose from when receiving the .
return Routee