Class 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.

    • Constructor Detail

      • GroupRouter

        public GroupRouter()
    • 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)