- java.lang.Object
-
- java.lang.Enum<ClientRequestAttribute>
-
- io.helidon.grpc.client.ClientRequestAttribute
-
- All Implemented Interfaces:
Serializable
,Comparable<ClientRequestAttribute>
public enum ClientRequestAttribute extends Enum<ClientRequestAttribute>
An enum of possible gRPC client call attributes to attach to call tracing spans.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALL_CALL_OPTIONS
Add the method call options to the tracing span.AUTHORITY
Add the security authority to the tracing span.COMPRESSOR
Add the compressor type to the tracing span.DEADLINE
Add the call deadline to the tracing span.HEADERS
Add the method call headers to the tracing span.METHOD_NAME
Add the method name to the tracing span.METHOD_TYPE
Add the method type to the tracing span.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientRequestAttribute
valueOf(String name)
Returns the enum constant of this type with the specified name.static ClientRequestAttribute[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
METHOD_TYPE
public static final ClientRequestAttribute METHOD_TYPE
Add the method type to the tracing span.
-
METHOD_NAME
public static final ClientRequestAttribute METHOD_NAME
Add the method name to the tracing span.
-
DEADLINE
public static final ClientRequestAttribute DEADLINE
Add the call deadline to the tracing span.
-
COMPRESSOR
public static final ClientRequestAttribute COMPRESSOR
Add the compressor type to the tracing span.
-
AUTHORITY
public static final ClientRequestAttribute AUTHORITY
Add the security authority to the tracing span.
-
ALL_CALL_OPTIONS
public static final ClientRequestAttribute ALL_CALL_OPTIONS
Add the method call options to the tracing span.
-
HEADERS
public static final ClientRequestAttribute HEADERS
Add the method call headers to the tracing span.
-
-
Method Detail
-
values
public static ClientRequestAttribute[] 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 (ClientRequestAttribute c : ClientRequestAttribute.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClientRequestAttribute valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-