Package io.getunleash.repository
Class FeatureRepository
- java.lang.Object
-
- io.getunleash.repository.FeatureRepository
-
- All Implemented Interfaces:
IFeatureRepository,ToggleRepository
public class FeatureRepository extends Object implements IFeatureRepository
-
-
Constructor Summary
Constructors Modifier Constructor Description FeatureRepository(UnleashConfig unleashConfig)FeatureRepository(UnleashConfig unleashConfig, BackupHandler<FeatureCollection> featureBackupHandler)protectedFeatureRepository(UnleashConfig unleashConfig, BackupHandler<FeatureCollection> featureBackupHandler, EventDispatcher eventDispatcher, FeatureFetcher featureFetcher, FeatureBootstrapHandler featureBootstrapHandler)protectedFeatureRepository(UnleashConfig unleashConfig, FeatureBackupHandlerFile featureBackupHandler, UnleashScheduledExecutor executor, FeatureFetcher featureFetcher, FeatureBootstrapHandler featureBootstrapHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getFeatureNames()SegmentgetSegment(Integer id)FeatureTogglegetToggle(String name)
-
-
-
Constructor Detail
-
FeatureRepository
public FeatureRepository(UnleashConfig unleashConfig)
-
FeatureRepository
public FeatureRepository(UnleashConfig unleashConfig, BackupHandler<FeatureCollection> featureBackupHandler)
-
FeatureRepository
protected FeatureRepository(UnleashConfig unleashConfig, BackupHandler<FeatureCollection> featureBackupHandler, EventDispatcher eventDispatcher, FeatureFetcher featureFetcher, FeatureBootstrapHandler featureBootstrapHandler)
-
FeatureRepository
protected FeatureRepository(UnleashConfig unleashConfig, FeatureBackupHandlerFile featureBackupHandler, UnleashScheduledExecutor executor, FeatureFetcher featureFetcher, FeatureBootstrapHandler featureBootstrapHandler)
-
-
Method Detail
-
getToggle
@Nullable public FeatureToggle getToggle(String name)
- Specified by:
getTogglein interfaceToggleRepository
-
getFeatureNames
public List<String> getFeatureNames()
- Specified by:
getFeatureNamesin interfaceToggleRepository
-
getSegment
public Segment getSegment(Integer id)
- Specified by:
getSegmentin interfaceIFeatureRepository
-
-