Package akka.routing
Class RoundRobinRoutingLogic
- java.lang.Object
-
- akka.routing.RoundRobinRoutingLogic
-
- All Implemented Interfaces:
NoSerializationVerificationNeeded
,RoutingLogic
public final class RoundRobinRoutingLogic extends java.lang.Object implements RoutingLogic
Uses round-robin to select a routee. For concurrent calls, round robin is just a best effort.
-
-
Constructor Summary
Constructors Constructor Description RoundRobinRoutingLogic()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RoundRobinRoutingLogic
apply()
java.util.concurrent.atomic.AtomicLong
next()
Routee
select(java.lang.Object message, scala.collection.immutable.IndexedSeq<Routee> routees)
-
-
-
Method Detail
-
apply
public static RoundRobinRoutingLogic apply()
-
next
public java.util.concurrent.atomic.AtomicLong next()
-
select
public Routee select(java.lang.Object message, scala.collection.immutable.IndexedSeq<Routee> routees)
- Specified by:
select
in interfaceRoutingLogic
-
-