public class MemcacheStateRepository extends Object implements StateRepository
Constructor and Description |
---|
MemcacheStateRepository(StateRepository delegate) |
MemcacheStateRepository(StateRepository delegate,
int ttlInSeconds) |
Modifier and Type | Method and Description |
---|---|
FeatureState |
getFeatureState(Feature feature)
Get the persisted state of a feature from the repository.
|
void |
setFeatureState(FeatureState featureState)
Persist the supplied feature state.
|
public MemcacheStateRepository(StateRepository delegate)
public MemcacheStateRepository(StateRepository delegate, int ttlInSeconds)
public FeatureState getFeatureState(Feature feature)
StateRepository
null
.getFeatureState
in interface StateRepository
feature
- The feature to read the state fornull
public void setFeatureState(FeatureState featureState)
StateRepository
StateRepository.getFeatureState(Feature)
return the same state as persisted using this method.setFeatureState
in interface StateRepository
featureState
- The feature state to persistCopyright © 2014. All Rights Reserved.