Class GroupRouterImpl<T>


  • public final class GroupRouterImpl<T>
    extends AbstractBehavior<T>
    INTERNAL API
    • Constructor Detail

      • GroupRouterImpl

        public GroupRouterImpl​(ActorContext<T> ctx,
                               ServiceKey<T> serviceKey,
                               boolean preferLocalRoutees,
                               RoutingLogic<T> routingLogic,
                               boolean routeesInitiallyEmpty)
    • Method Detail

      • onMessage

        public Behavior<T> onMessage​(T msg)
        Description copied from class: AbstractBehavior
        Implement this method to process an incoming message and return the next behavior.

        The returned behavior can in addition to normal behaviors be one of the canned special objects:

        • returning stopped will terminate this Behavior
        • returning this or same designates to reuse the current Behavior
        • returning unhandled keeps the same Behavior and signals that the message was not yet handled

        Specified by:
        onMessage in class AbstractBehavior<T>
        Parameters:
        msg - (undocumented)
        Returns:
        (undocumented)