Enum Class Tm1SupportMode
- All Implemented Interfaces:
Serializable, Comparable<Tm1SupportMode>, Constable
How strictly a client holds calls to what the connected TM1 version does: a feature the
server would refuse anyway is refused before sending, and one it would accept and then
drop or answer with nothing is sent with a warning.
What the server's own $metadata lacks (Tm1SupportStatus.UNSUPPORTED
with no fact) is refused in every mode: the modes govern the support facts, which can
be out of date, not $metadata, which can't. Tm1SupportStatus.PARTIAL
depends on the call's arguments, so it's never held in any mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe escape hatch for facts that are out of date: every call is sent, and the facts aren't checked.For tests and CI: every warning ofWARNis a refusal instead, except aTm1SupportStatus.CONDITIONALfeature whose setting couldn't be read, which is only ever a warning.The default. -
Method Summary
Modifier and TypeMethodDescriptionoutcome(Tm1Support support, @Nullable Boolean setting) What this mode does with a call to a feature.static Tm1SupportModeReturns the enum constant of this class with the specified name.static Tm1SupportMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
WARN
The default. A refusal the facts certify for this version is refused; one they only extrapolate to it is sent with a warning, as is a read that answers with nothing (Tm1SupportStatus.INERT) and a write that's dropped (Tm1SupportStatus.IGNORED). -
STRICT
For tests and CI: every warning ofWARNis a refusal instead, except aTm1SupportStatus.CONDITIONALfeature whose setting couldn't be read, which is only ever a warning. -
OFF
The escape hatch for facts that are out of date: every call is sent, and the facts aren't checked.
-
-
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
-
outcome
What this mode does with a call to a feature.- Parameters:
support- what the server does with the featuresetting- for aTm1SupportStatus.CONDITIONALfeature, whether the setting it depends on is on, ornullif it couldn't be read; ignored otherwise- Returns:
- whether the call is sent, sent with a warning, or refused
-