Enum EntryFilter.FilterResult
- java.lang.Object
-
- java.lang.Enum<EntryFilter.FilterResult>
-
- org.apache.pulsar.broker.service.plugin.EntryFilter.FilterResult
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<EntryFilter.FilterResult>
- Enclosing interface:
- EntryFilter
public static enum EntryFilter.FilterResult extends java.lang.Enum<EntryFilter.FilterResult>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCEPTdeliver to the consumer.REJECTskip the message.RESCHEDULEpostpone message, it should not go to this conmumer.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EntryFilter.FilterResultvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static EntryFilter.FilterResult[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCEPT
public static final EntryFilter.FilterResult ACCEPT
deliver to the consumer.
-
REJECT
public static final EntryFilter.FilterResult REJECT
skip the message.
-
RESCHEDULE
public static final EntryFilter.FilterResult RESCHEDULE
postpone message, it should not go to this conmumer.
-
-
Method Detail
-
values
public static EntryFilter.FilterResult[] 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 (EntryFilter.FilterResult c : EntryFilter.FilterResult.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EntryFilter.FilterResult 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
-
-