Package io.getunleash.engine
Class FlatInterface
java.lang.Object
io.getunleash.engine.FlatInterface
- All Implemented Interfaces:
NativeInterface
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckEnabled(ByteBuffer contextMessage) Checks if a feature is enabled.checkVariant(ByteBuffer contextMessage) Get active variant for togglevoidFrees the memory allocated for the engine.static BuiltInStrategiesGet metrics for the engine.getState()Retrieves the current state of the engine.List known toggles.Loads state into the engine.
-
Constructor Details
-
FlatInterface
public FlatInterface()
-
-
Method Details
-
freeEngine
public void freeEngine()Description copied from interface:NativeInterfaceFrees the memory allocated for the engine.- Specified by:
freeEnginein interfaceNativeInterface
-
takeState
Description copied from interface:NativeInterfaceLoads state into the engine.- Specified by:
takeStatein interfaceNativeInterface- Parameters:
toggles- The state to load.
-
getState
Description copied from interface:NativeInterfaceRetrieves the current state of the engine.- Specified by:
getStatein interfaceNativeInterface- Returns:
- The current state of the engine.
-
checkEnabled
Description copied from interface:NativeInterfaceChecks if a feature is enabled.- Specified by:
checkEnabledin interfaceNativeInterface- Parameters:
contextMessage- The context message to use for the check.- Returns:
- The result of the check.
-
checkVariant
Description copied from interface:NativeInterfaceGet active variant for toggle- Specified by:
checkVariantin interfaceNativeInterface- Parameters:
contextMessage- The context message to use for the check.- Returns:
- The active variant for the toggle.
-
getMetrics
Description copied from interface:NativeInterfaceGet metrics for the engine.- Specified by:
getMetricsin interfaceNativeInterface- Returns:
- The metrics for the engine.
-
listKnownToggles
Description copied from interface:NativeInterfaceList known toggles.- Specified by:
listKnownTogglesin interfaceNativeInterface- Returns:
- The list of known toggles.
-
getBuiltInStrategies
-