Package org.languagetool.server
Enum ServerMetricsCollector.RequestErrorType
- java.lang.Object
-
- java.lang.Enum<ServerMetricsCollector.RequestErrorType>
-
- org.languagetool.server.ServerMetricsCollector.RequestErrorType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ServerMetricsCollector.RequestErrorType>
- Enclosing class:
- ServerMetricsCollector
public static enum ServerMetricsCollector.RequestErrorType extends java.lang.Enum<ServerMetricsCollector.RequestErrorType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INVALID_REQUEST
MAX_CHECK_TIME
MAX_TEXT_SIZE
QUEUE_FULL
TOO_MANY_ERRORS
-
Constructor Summary
Constructors Modifier Constructor Description private
RequestErrorType()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ServerMetricsCollector.RequestErrorType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ServerMetricsCollector.RequestErrorType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
QUEUE_FULL
public static final ServerMetricsCollector.RequestErrorType QUEUE_FULL
-
TOO_MANY_ERRORS
public static final ServerMetricsCollector.RequestErrorType TOO_MANY_ERRORS
-
MAX_CHECK_TIME
public static final ServerMetricsCollector.RequestErrorType MAX_CHECK_TIME
-
MAX_TEXT_SIZE
public static final ServerMetricsCollector.RequestErrorType MAX_TEXT_SIZE
-
INVALID_REQUEST
public static final ServerMetricsCollector.RequestErrorType INVALID_REQUEST
-
-
Method Detail
-
values
public static ServerMetricsCollector.RequestErrorType[] 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 (ServerMetricsCollector.RequestErrorType c : ServerMetricsCollector.RequestErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServerMetricsCollector.RequestErrorType 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
-
-