Package io.quarkiverse.unleash.runtime
Class UnleashService
- java.lang.Object
-
- io.quarkiverse.unleash.runtime.UnleashService
-
- All Implemented Interfaces:
io.getunleash.Unleash
@ApplicationScoped public class UnleashService extends Object implements io.getunleash.Unleash
-
-
Constructor Summary
Constructors Constructor Description UnleashService()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description List<String>getFeatureToggleNames()Deprecated.io.getunleash.VariantgetVariant(String toggleName)io.getunleash.VariantgetVariant(String toggleName, io.getunleash.UnleashContext context)io.getunleash.VariantgetVariant(String toggleName, io.getunleash.UnleashContext context, io.getunleash.Variant defaultValue)io.getunleash.VariantgetVariant(String toggleName, io.getunleash.Variant defaultValue)booleanisEnabled(String toggleName)booleanisEnabled(String toggleName, boolean defaultSetting)booleanisEnabled(String toggleName, io.getunleash.UnleashContext unleashContext, boolean defaultSetting)booleanisEnabled(String toggleName, io.getunleash.UnleashContext context, BiFunction<String,io.getunleash.UnleashContext,Boolean> fallbackAction)booleanisEnabled(String toggleName, BiFunction<String,io.getunleash.UnleashContext,Boolean> fallbackAction)io.getunleash.MoreOperationsmore()
-
-
-
Method Detail
-
isEnabled
public boolean isEnabled(String toggleName)
- Specified by:
isEnabledin interfaceio.getunleash.Unleash
-
isEnabled
public boolean isEnabled(String toggleName, boolean defaultSetting)
- Specified by:
isEnabledin interfaceio.getunleash.Unleash
-
isEnabled
public boolean isEnabled(String toggleName, io.getunleash.UnleashContext unleashContext, boolean defaultSetting)
- Specified by:
isEnabledin interfaceio.getunleash.Unleash
-
isEnabled
public boolean isEnabled(String toggleName, BiFunction<String,io.getunleash.UnleashContext,Boolean> fallbackAction)
- Specified by:
isEnabledin interfaceio.getunleash.Unleash
-
isEnabled
public boolean isEnabled(String toggleName, io.getunleash.UnleashContext context, BiFunction<String,io.getunleash.UnleashContext,Boolean> fallbackAction)
- Specified by:
isEnabledin interfaceio.getunleash.Unleash
-
getVariant
public io.getunleash.Variant getVariant(String toggleName, io.getunleash.UnleashContext context)
- Specified by:
getVariantin interfaceio.getunleash.Unleash
-
getVariant
public io.getunleash.Variant getVariant(String toggleName, io.getunleash.UnleashContext context, io.getunleash.Variant defaultValue)
- Specified by:
getVariantin interfaceio.getunleash.Unleash
-
getVariant
public io.getunleash.Variant getVariant(String toggleName)
- Specified by:
getVariantin interfaceio.getunleash.Unleash
-
getVariant
public io.getunleash.Variant getVariant(String toggleName, io.getunleash.Variant defaultValue)
- Specified by:
getVariantin interfaceio.getunleash.Unleash
-
getFeatureToggleNames
@Deprecated public List<String> getFeatureToggleNames()
Deprecated.- Specified by:
getFeatureToggleNamesin interfaceio.getunleash.Unleash
-
more
public io.getunleash.MoreOperations more()
- Specified by:
morein interfaceio.getunleash.Unleash
-
-