Package org.apache.pulsar.common.topics
Enum Class TopicsPattern.RegexImplementation
java.lang.Object
java.lang.Enum<TopicsPattern.RegexImplementation>
org.apache.pulsar.common.topics.TopicsPattern.RegexImplementation
- All Implemented Interfaces:
Serializable,Comparable<TopicsPattern.RegexImplementation>,Constable
- Enclosing interface:
- TopicsPattern
public static enum TopicsPattern.RegexImplementation
extends Enum<TopicsPattern.RegexImplementation>
The regex implementation type used by the TopicsPattern.
RE2J is a fast regex engine that is suitable for high-performance applications.
JDK uses the standard Java regex engine.
RE2J_WITH_JDK_FALLBACK uses RE2J but falls back to JDK if RE2J fails to compile the pattern.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static TopicsPattern.RegexImplementation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
RE2J
-
JDK
-
RE2J_WITH_JDK_FALLBACK
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-