Enum StreamCreator.LeaderLocator

    • Enum Constant Detail

      • CLIENT_LOCAL

        public static final StreamCreator.LeaderLocator CLIENT_LOCAL
        The stream leader will be on the node the client is connected to.

        This is the default value.

      • BALANCED

        public static final StreamCreator.LeaderLocator BALANCED
        The leader will be the node hosting the minimum number of stream leaders, if there are overall less than 1000 queues, or a random node, if there are overall more than 1000 queues.

        Available as of RabbitMQ 3.10.

        Default value for RabbitMQ 3.10+.

      • LEAST_LEADERS

        public static final StreamCreator.LeaderLocator LEAST_LEADERS
        The stream leader will be on the node with the least number of stream leaders.

        Deprecated as of RabbitMQ 3.10, same as BALANCED.

        Default value for RabbitMQ 3.9.

    • Method Detail

      • values

        public static StreamCreator.LeaderLocator[] 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 (StreamCreator.LeaderLocator c : StreamCreator.LeaderLocator.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StreamCreator.LeaderLocator 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
      • value

        public String value()