Enum OffloadedReadPriority
- java.lang.Object
-
- java.lang.Enum<OffloadedReadPriority>
-
- org.apache.pulsar.common.policies.data.OffloadedReadPriority
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<OffloadedReadPriority>
@Public @Stable public enum OffloadedReadPriority extends java.lang.Enum<OffloadedReadPriority>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOKKEEPER_FIRSTFor offloaded messages, readers will try to read from bookkeeper at first, if messages not exist at bookkeeper then read from offloaded storage.TIERED_STORAGE_FIRSTFor offloaded messages, readers will try to read from offloaded storage first, even they are still exist in bookkeeper.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequalsName(java.lang.String otherName)static OffloadedReadPriorityfromString(java.lang.String str)java.lang.StringgetValue()java.lang.StringtoString()static OffloadedReadPriorityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static OffloadedReadPriority[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BOOKKEEPER_FIRST
public static final OffloadedReadPriority BOOKKEEPER_FIRST
For offloaded messages, readers will try to read from bookkeeper at first, if messages not exist at bookkeeper then read from offloaded storage.
-
TIERED_STORAGE_FIRST
public static final OffloadedReadPriority TIERED_STORAGE_FIRST
For offloaded messages, readers will try to read from offloaded storage first, even they are still exist in bookkeeper.
-
-
Method Detail
-
values
public static OffloadedReadPriority[] 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 (OffloadedReadPriority c : OffloadedReadPriority.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static OffloadedReadPriority valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
equalsName
public boolean equalsName(java.lang.String otherName)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<OffloadedReadPriority>
-
fromString
public static OffloadedReadPriority fromString(java.lang.String str)
-
getValue
public java.lang.String getValue()
-
-