Package io.getunleash
Class DefaultUnleash
java.lang.Object
io.getunleash.DefaultUnleash
- All Implemented Interfaces:
Unleash
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionDefaultUnleash(UnleashConfig unleashConfig, EngineProxy engineProxy) DefaultUnleash(UnleashConfig unleashConfig, EngineProxy engineProxy, UnleashContextProvider contextProvider, EventDispatcher eventDispatcher) DefaultUnleash(UnleashConfig unleashConfig, EngineProxy engineProxy, UnleashContextProvider contextProvider, EventDispatcher eventDispatcher, boolean failOnMultipleInstantiations) DefaultUnleash(UnleashConfig unleashConfig, Strategy... strategies) -
Method Summary
Modifier and TypeMethodDescriptiongetVariant(String toggleName) getVariant(String toggleName, UnleashContext context) getVariant(String toggleName, UnleashContext context, Variant defaultValue) getVariant(String toggleName, Variant defaultValue) booleanbooleanisEnabled(String toggleName, UnleashContext context, BiPredicate<String, UnleashContext> fallbackAction) booleanisEnabled(String toggleName, BiPredicate<String, UnleashContext> fallbackAction) more()voidshutdown()
-
Constructor Details
-
DefaultUnleash
-
DefaultUnleash
-
DefaultUnleash
public DefaultUnleash(UnleashConfig unleashConfig, EngineProxy engineProxy, UnleashContextProvider contextProvider, EventDispatcher eventDispatcher) -
DefaultUnleash
public DefaultUnleash(UnleashConfig unleashConfig, EngineProxy engineProxy, UnleashContextProvider contextProvider, EventDispatcher eventDispatcher, boolean failOnMultipleInstantiations)
-
-
Method Details
-
isEnabled
-
isEnabled
-
isEnabled
public boolean isEnabled(String toggleName, UnleashContext context, BiPredicate<String, UnleashContext> fallbackAction) -
getVariant
- Specified by:
getVariantin interfaceUnleash
-
getVariant
- Specified by:
getVariantin interfaceUnleash
-
getVariant
- Specified by:
getVariantin interfaceUnleash
-
getVariant
- Specified by:
getVariantin interfaceUnleash
-
shutdown
public void shutdown() -
more
-
getImpactMetrics
- Specified by:
getImpactMetricsin interfaceUnleash
-