Package org.apache.pekko.routing
Class ScatterGatherFirstCompletedRoutingLogic
java.lang.Object
org.apache.pekko.routing.ScatterGatherFirstCompletedRoutingLogic
- All Implemented Interfaces:
Serializable,NoSerializationVerificationNeeded,RoutingLogic,scala.Equals,scala.Product
public final class ScatterGatherFirstCompletedRoutingLogic
extends Object
implements RoutingLogic, scala.Product, Serializable
Broadcasts the message to all routees, and replies with the first response.
param: within expecting at least one reply within this duration, otherwise
it will reply with pekko.pattern.AskTimeoutException in a pekko.actor.Status.Failure
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScatterGatherFirstCompletedRoutingLogic(scala.concurrent.duration.FiniteDuration within) -
Method Summary
Modifier and TypeMethodDescriptionapply(scala.concurrent.duration.FiniteDuration within) booleancopy(scala.concurrent.duration.FiniteDuration within) scala.concurrent.duration.FiniteDurationbooleaninthashCode()intproductElement(int x$1) productElementName(int x$1) scala.collection.Iterator<Object>Pick the destination for a given message.toString()static scala.Option<scala.concurrent.duration.FiniteDuration>scala.concurrent.duration.FiniteDurationwithin()Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface scala.Product
productElementNames
-
Constructor Details
-
ScatterGatherFirstCompletedRoutingLogic
public ScatterGatherFirstCompletedRoutingLogic(scala.concurrent.duration.FiniteDuration within)
-
-
Method Details
-
apply
public static ScatterGatherFirstCompletedRoutingLogic apply(scala.concurrent.duration.FiniteDuration within) -
unapply
public static scala.Option<scala.concurrent.duration.FiniteDuration> unapply(ScatterGatherFirstCompletedRoutingLogic x$0) -
within
public scala.concurrent.duration.FiniteDuration within() -
select
Description copied from interface:RoutingLogicPick the destination for a given message. Normally it picks one of the passedroutees, but in the end it is up to the implementation to return whateverpekko.routing.Routeeto use for sending a specific message.When implemented from Java it can be good to know that
routees.apply(index)can be used to get an element from theIndexedSeq.- Specified by:
selectin interfaceRoutingLogic
-
copy
public ScatterGatherFirstCompletedRoutingLogic copy(scala.concurrent.duration.FiniteDuration within) -
copy$default$1
public scala.concurrent.duration.FiniteDuration copy$default$1() -
productPrefix
- Specified by:
productPrefixin interfacescala.Product
-
productArity
public int productArity()- Specified by:
productArityin interfacescala.Product
-
productElement
- Specified by:
productElementin interfacescala.Product
-
productIterator
- Specified by:
productIteratorin interfacescala.Product
-
canEqual
- Specified by:
canEqualin interfacescala.Equals
-
productElementName
- Specified by:
productElementNamein interfacescala.Product
-
hashCode
public int hashCode() -
toString
-
equals
-