Package akka.actor.typed.javadsl
Class GroupRouter<T>
- java.lang.Object
-
- akka.actor.typed.Behavior<T>
-
- akka.actor.typed.Behavior.DeferredBehavior<T>
-
- akka.actor.typed.javadsl.GroupRouter<T>
-
- Direct Known Subclasses:
GroupRouterBuilder
public abstract class GroupRouter<T> extends Behavior.DeferredBehavior<T>
Route messages by randomly selecting the routee from the available routees.This is the default for group routers.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class akka.actor.typed.Behavior
Behavior.BehaviorDecorators<T>, Behavior.BehaviorDecorators$, Behavior.DeferredBehavior<T>, Behavior.DeferredBehavior$, Behavior.EmptyBehavior$, Behavior.FailedBehavior, Behavior.IgnoreBehavior$, Behavior.SameBehavior$, Behavior.StoppedBehavior<T>, Behavior.StoppedBehavior$, Behavior.UnhandledBehavior$
-
-
Constructor Summary
Constructors Constructor Description GroupRouter()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract GroupRouter<T>
withRandomRouting()
abstract GroupRouter<T>
withRoundRobinRouting()
Route messages by using round robin.-
Methods inherited from class akka.actor.typed.Behavior.DeferredBehavior
apply
-
Methods inherited from class akka.actor.typed.Behavior
_tag, BehaviorDecorators, canonicalize, empty, existsInStack, failed, ignore, interpretMessage, interpretSignal, isAlive, isDeferred, isUnhandled, narrow, orElse, same, start, stopped, stopped, unhandled, unhandledSignal, unsafeCast, validateAsInitial
-
-
-
-
Method Detail
-
withRandomRouting
public abstract GroupRouter<T> withRandomRouting()
-
withRoundRobinRouting
public abstract GroupRouter<T> withRoundRobinRouting()
Route messages by using round robin.Round robin gives fair routing where every available routee gets the same amount of messages as long as the set of routees stays relatively stable, but may be unfair if the set of routees changes a lot.
- Returns:
- (undocumented)
-
-