Class GroupRouterBuilder<T>

  • All Implemented Interfaces:
    GroupRouter<T>,, scala.Equals, scala.Product, scala.Serializable

    public final class GroupRouterBuilder<T>
    extends GroupRouter<T>
    implements GroupRouter<T>, scala.Product, scala.Serializable
    Provides builder style configuration options for group routers while still being a behavior that can be spawned


    See Also:
    Serialized Form
    • Constructor Detail

    • Method Detail

      • $lessinit$greater$default$2

        public static <T> scala.Function0<RoutingLogics.RandomLogic<T>> $lessinit$greater$default$2()
      • logicFactory

        public scala.Function0<RoutingLogic<T>> logicFactory()
      • withRoundRobinRouting

        public GroupRouterBuilder<T> withRoundRobinRouting()
        Description copied from class: GroupRouter
        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.

        Specified by:
        withRoundRobinRouting in interface GroupRouter<T>
        Specified by:
        withRoundRobinRouting in class GroupRouter<T>
      • copy$default$1

        public <T> ServiceKey<T> copy$default$1()
      • copy$default$2

        public <T> scala.Function0<RoutingLogic<T>> copy$default$2()
      • productPrefix

        public java.lang.String productPrefix()
        Specified by:
        productPrefix in interface scala.Product
      • productArity

        public int productArity()
        Specified by:
        productArity in interface scala.Product
      • productElement

        public java.lang.Object productElement​(int x$1)
        Specified by:
        productElement in interface scala.Product
      • productIterator

        public scala.collection.Iterator<java.lang.Object> productIterator()
        Specified by:
        productIterator in interface scala.Product
      • canEqual

        public boolean canEqual​(java.lang.Object x$1)
        Specified by:
        canEqual in interface scala.Equals
      • hashCode

        public int hashCode()
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object x$1)
        Specified by:
        equals in interface scala.Equals
        equals in class java.lang.Object