public enum TopicPriority extends java.lang.Enum<TopicPriority>
Enum Constant | Description |
---|---|
High |
Messages in topic with this priority level are less likely to be deleted from the cache as the server frees system memory.
|
Low |
Messages in topic with this priority level are the most likely to be deleted from the cache as the server frees system memory.
|
Normal |
Messages in topic with this priority level are likely to be deleted from the cache as the server frees system memory only after those topics with Low priority.
|
Modifier and Type | Method | Description |
---|---|---|
static TopicPriority |
forValue(int value) |
retreives the enum constant of the specified value, if exists.
|
int |
getValue() |
Order is important in enums.By using getValue() method, each enum constant index can be found, just like array index.
|
static TopicPriority |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static TopicPriority[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TopicPriority Low
public static final TopicPriority Normal
public static final TopicPriority High
public static TopicPriority[] values()
for (TopicPriority c : TopicPriority.values()) System.out.println(c);
public static TopicPriority valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static TopicPriority forValue(int value)
value
- enum constant index