Package org.springframework.amqp.core
Enum QueueBuilder.LeaderLocator
- java.lang.Object
-
- java.lang.Enum<QueueBuilder.LeaderLocator>
-
- org.springframework.amqp.core.QueueBuilder.LeaderLocator
-
- All Implemented Interfaces:
Serializable
,Comparable<QueueBuilder.LeaderLocator>
- Enclosing class:
- QueueBuilder
public static enum QueueBuilder.LeaderLocator extends Enum<QueueBuilder.LeaderLocator>
Locate the queue leader.- Since:
- 2.3.7
-
-
Enum Constant Summary
Enum Constants Enum Constant Description clientLocal
Deploy on the node we are connected to.minLeaders
Deploy on the node with the fewest queue leaders.random
Deploy on a random node.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getValue()
Return the value.static QueueBuilder.LeaderLocator
valueOf(String name)
Returns the enum constant of this type with the specified name.static QueueBuilder.LeaderLocator[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
minLeaders
public static final QueueBuilder.LeaderLocator minLeaders
Deploy on the node with the fewest queue leaders.
-
clientLocal
public static final QueueBuilder.LeaderLocator clientLocal
Deploy on the node we are connected to.
-
random
public static final QueueBuilder.LeaderLocator random
Deploy on a random node.
-
-
Method Detail
-
values
public static QueueBuilder.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 (QueueBuilder.LeaderLocator c : QueueBuilder.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 QueueBuilder.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 nameNullPointerException
- if the argument is null
-
getValue
public String getValue()
Return the value.- Returns:
- the value.
-
-