Package akka.routing
Class ScatterGatherFirstCompletedRoutingLogic
- java.lang.Object
-
- akka.routing.ScatterGatherFirstCompletedRoutingLogic
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded
,RoutingLogic
,java.io.Serializable
,scala.Equals
,scala.Product
public final class ScatterGatherFirstCompletedRoutingLogic extends java.lang.Object implements RoutingLogic, scala.Product, java.io.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
AskTimeoutException
in aStatus.Failure
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScatterGatherFirstCompletedRoutingLogic(scala.concurrent.duration.FiniteDuration within)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ScatterGatherFirstCompletedRoutingLogic
apply(scala.concurrent.duration.FiniteDuration within)
boolean
canEqual(java.lang.Object x$1)
ScatterGatherFirstCompletedRoutingLogic
copy(scala.concurrent.duration.FiniteDuration within)
scala.concurrent.duration.FiniteDuration
copy$default$1()
boolean
equals(java.lang.Object x$1)
int
hashCode()
int
productArity()
java.lang.Object
productElement(int x$1)
java.lang.String
productElementName(int x$1)
scala.collection.Iterator<java.lang.Object>
productIterator()
java.lang.String
productPrefix()
Routee
select(java.lang.Object message, scala.collection.immutable.IndexedSeq<Routee> routees)
Pick the destination for a given message.java.lang.String
toString()
static scala.Option<scala.concurrent.duration.FiniteDuration>
unapply(ScatterGatherFirstCompletedRoutingLogic x$0)
scala.concurrent.duration.FiniteDuration
within()
-
-
-
Method Detail
-
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
public Routee select(java.lang.Object message, scala.collection.immutable.IndexedSeq<Routee> routees)
Description copied from interface:RoutingLogic
Pick 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 whateverRoutee
to 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:
select
in interfaceRoutingLogic
-
copy
public ScatterGatherFirstCompletedRoutingLogic copy(scala.concurrent.duration.FiniteDuration within)
-
copy$default$1
public scala.concurrent.duration.FiniteDuration copy$default$1()
-
productPrefix
public java.lang.String productPrefix()
- Specified by:
productPrefix
in interfacescala.Product
-
productArity
public int productArity()
- Specified by:
productArity
in interfacescala.Product
-
productElement
public java.lang.Object productElement(int x$1)
- Specified by:
productElement
in interfacescala.Product
-
productIterator
public scala.collection.Iterator<java.lang.Object> productIterator()
- Specified by:
productIterator
in interfacescala.Product
-
canEqual
public boolean canEqual(java.lang.Object x$1)
- Specified by:
canEqual
in interfacescala.Equals
-
productElementName
public java.lang.String productElementName(int x$1)
- Specified by:
productElementName
in interfacescala.Product
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Specified by:
equals
in interfacescala.Equals
- Overrides:
equals
in classjava.lang.Object
-
-