Package io.getunleash.repository
Class FeatureRepositoryImpl
java.lang.Object
io.getunleash.repository.FeatureRepositoryImpl
- All Implemented Interfaces:
FeatureRepository
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureRepositoryImpl(UnleashConfig unleashConfig, io.getunleash.engine.UnleashEngine engine) -
Method Summary
Modifier and TypeMethodDescriptionio.getunleash.engine.FlatResponse<io.getunleash.engine.VariantDef>getVariant(String toggleName, UnleashContext context) io.getunleash.engine.FlatResponse<Boolean>isEnabled(String toggleName, UnleashContext context) voidshutdown()
-
Constructor Details
-
FeatureRepositoryImpl
public FeatureRepositoryImpl(UnleashConfig unleashConfig, io.getunleash.engine.UnleashEngine engine)
-
-
Method Details
-
isEnabled
public io.getunleash.engine.FlatResponse<Boolean> isEnabled(String toggleName, UnleashContext context) - Specified by:
isEnabledin interfaceFeatureRepository
-
getVariant
public io.getunleash.engine.FlatResponse<io.getunleash.engine.VariantDef> getVariant(String toggleName, UnleashContext context) - Specified by:
getVariantin interfaceFeatureRepository
-
listKnownToggles
- Specified by:
listKnownTogglesin interfaceFeatureRepository
-
shutdown
public void shutdown()- Specified by:
shutdownin interfaceFeatureRepository
-