Enum RouterNode.RoutingPolicy

    • Enum Constant Detail

      • FIRST_MATCH

        public static final RouterNode.RoutingPolicy FIRST_MATCH
        The stream will be routed only that successor node that corresponds with the first matching routing rule. (default behavior)
      • EVERY_MATCH

        public static final RouterNode.RoutingPolicy EVERY_MATCH
        The stream will be routed only all successor nodes where the corresponding routing rule evaluated to true.

        As result the stream will be multiplexed and forwarded to several subsequent nodes.

    • Method Detail

      • values

        public static RouterNode.RoutingPolicy[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RouterNode.RoutingPolicy c : RouterNode.RoutingPolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RouterNode.RoutingPolicy valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null