Enum Class FutureRpcResults.LogLevel
java.lang.Object
java.lang.Enum<FutureRpcResults.LogLevel>
org.opendaylight.serviceutils.tools.rpc.FutureRpcResults.LogLevel
- All Implemented Interfaces:
Serializable
,Comparable<FutureRpcResults.LogLevel>
,Constable
- Enclosing class:
- FutureRpcResults
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNote that when using LogLevel NONE for failures, then you should set aFutureRpcResults.FutureRpcResultBuilder.onFailure(Consumer)
which does better logging, or be 100% sure that all callers of the RPC check the returned Future RpcResult appropriately; otherwise you will lose error messages. -
Method Summary
Modifier and TypeMethodDescriptionvoid
static FutureRpcResults.LogLevel
Returns the enum constant of this class with the specified name.static FutureRpcResults.LogLevel[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ERROR
-
WARN
-
INFO
-
DEBUG
-
TRACE
-
NONE
Note that when using LogLevel NONE for failures, then you should set aFutureRpcResults.FutureRpcResultBuilder.onFailure(Consumer)
which does better logging, or be 100% sure that all callers of the RPC check the returned Future RpcResult appropriately; otherwise you will lose error messages.
-
-
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
-
log
-