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) FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine) FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine, FeatureFetcher fetcher) FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine, FeatureFetcher fetcher, ToggleBootstrapProvider bootstrapHandler) FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine, FeatureFetcher fetcher, ToggleBootstrapProvider bootstrapHandler, EventDispatcher eventDispatcher) -
Method Summary
Modifier and TypeMethodDescriptiongetSkips()Optional<io.getunleash.engine.VariantDef>getVariant(String toggleName, UnleashContext context) isEnabled(String toggleName, UnleashContext context) booleanshouldEmitImpressionEvent(String toggleName)
-
Constructor Details
-
FeatureRepositoryImpl
public FeatureRepositoryImpl(UnleashConfig unleashConfig, io.getunleash.engine.UnleashEngine engine) -
FeatureRepositoryImpl
public FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine) -
FeatureRepositoryImpl
public FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine, FeatureFetcher fetcher) -
FeatureRepositoryImpl
public FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine, FeatureFetcher fetcher, ToggleBootstrapProvider bootstrapHandler) -
FeatureRepositoryImpl
public FeatureRepositoryImpl(UnleashConfig unleashConfig, BackupHandler featureBackupHandler, io.getunleash.engine.UnleashEngine engine, FeatureFetcher fetcher, ToggleBootstrapProvider bootstrapHandler, EventDispatcher eventDispatcher)
-
-
Method Details
-
getFailures
-
getSkips
-
isEnabled
- Specified by:
isEnabledin interfaceFeatureRepository
-
getVariant
public Optional<io.getunleash.engine.VariantDef> getVariant(String toggleName, UnleashContext context) - Specified by:
getVariantin interfaceFeatureRepository
-
listKnownToggles
- Specified by:
listKnownTogglesin interfaceFeatureRepository
-
shouldEmitImpressionEvent
- Specified by:
shouldEmitImpressionEventin interfaceFeatureRepository
-