Interface GroupRouter<T>

  • All Known Implementing Classes:
    GroupRouterBuilder

    public interface GroupRouter<T>
    Route messages by randomly selecting the routee from the available routees. This is the default for group routers.
    • Method Detail

      • withRandomRouting

        GroupRouter<T> withRandomRouting()
        Route messages by randomly selecting the routee from the available routees. This is the default for group routers.
        Returns:
        (undocumented)
      • withRoundRobinRouting

        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)