public interface FeatureDb
| Modifier and Type | Interface and Description |
|---|---|
static class |
FeatureDb.WatchSignal |
| Modifier and Type | Method and Description |
|---|---|
void |
apply(FeatureState featureState) |
void |
ensureExists(Map<String,FeatureSourceStatus> features) |
FeatureState |
getFeature(String name)
Return a copy of the feature as it currently stands.
|
Map<String,FeatureState> |
getFeatures()
Get an immutable map of the current features
|
void |
init() |
void |
refresh()
request from the client for us to refresh from the database.
|
void |
watch(Consumer<FeatureDb.WatchSignal> changed) |
void ensureExists(Map<String,FeatureSourceStatus> features)
void watch(Consumer<FeatureDb.WatchSignal> changed)
Map<String,FeatureState> getFeatures()
FeatureState getFeature(String name)
name - - feature to findvoid refresh()
void apply(FeatureState featureState)
void init()
Copyright © 2019. All rights reserved.