Enum RequestConcurrencyController.Result
- java.lang.Object
-
- java.lang.Enum<RequestConcurrencyController.Result>
-
- io.servicetalk.client.api.internal.RequestConcurrencyController.Result
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<RequestConcurrencyController.Result>
- Enclosing interface:
- RequestConcurrencyController
public static enum RequestConcurrencyController.Result extends java.lang.Enum<RequestConcurrencyController.Result>
Result of theRequestConcurrencyController.tryRequest()
call.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description Accepted
Selecting the resource succeeded.RejectedPermanently
Selecting the resource was denied, and will not succeed at later time.RejectedTemporary
Selecting the resource was denied, but may succeed at later time.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static RequestConcurrencyController.Result
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static RequestConcurrencyController.Result[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
Accepted
public static final RequestConcurrencyController.Result Accepted
Selecting the resource succeeded.
-
RejectedTemporary
public static final RequestConcurrencyController.Result RejectedTemporary
Selecting the resource was denied, but may succeed at later time.
-
RejectedPermanently
public static final RequestConcurrencyController.Result RejectedPermanently
Selecting the resource was denied, and will not succeed at later time.
-
-
Method Detail
-
values
public static RequestConcurrencyController.Result[] 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 (RequestConcurrencyController.Result c : RequestConcurrencyController.Result.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static RequestConcurrencyController.Result 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
-
-