Package io.mats3
Enum Class MatsInitiator.KeepTrace
- All Implemented Interfaces:
Serializable
,Comparable<MatsInitiator.KeepTrace>
,Constable
- Enclosing interface:
- MatsInitiator
A hint to the underlying implementation of how much historic debugging information for the call flow should be
retained in the underlying protocol.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionNulls out Data for other than current call while still keeping the meta-info for the call history, and condenses State to a pure stack.Default: Keep all history for request and reply DTOs, and all history for state STOs.Only keep the current call, and condenses State to a pure stack. -
Method Summary
Modifier and TypeMethodDescriptionstatic MatsInitiator.KeepTrace
Returns the enum constant of this class with the specified name.static MatsInitiator.KeepTrace[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULL
Default: Keep all history for request and reply DTOs, and all history for state STOs. All calls with data and state should be kept, which e.g means that at the Terminator, all request and reply DTOs, and all STOs (with their changing values between each stage of a multi-stage endpoint) will be present in the underlying protocol. -
COMPACT
Nulls out Data for other than current call while still keeping the meta-info for the call history, and condenses State to a pure stack. This is a compromise between FULL and MINIMAL, where the DTOs and STOs except for the ones needed in the stack, are "nulled out", while the call trace itself (with metadata) is still present, which e.g. means that at the Terminator, you will know all endpoints and stages that the call flow traversed, but not the data or state except for what is pertinent for the Terminator. -
MINIMAL
Only keep the current call, and condenses State to a pure stack. Keep zero history, where only the current call, and only the STOs needed for the current stack, are present. This e.g. means that at the Terminator, no Calls nor DTOs and STOs except for the current incoming to the Terminator will be present in the underlying protocol.
-
-
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
-