public enum CacheFeatureFlag extends Enum<CacheFeatureFlag> implements FeatureFlag
Enum Constant and Description |
---|
ETAG
Use only etag cache.
|
LOCAL_SIGNATURE
Use only local signature cache.
|
NONE
No cache.
|
TTL
Use only TTL cache.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the simple property name of this feature flag.
|
boolean |
isOn()
Returns whether the feature flag is activated.
|
void |
reset()
Restores the feature flag to the startup state (if supported by the underlying conf mechanism).
|
protected static void |
resetAll()
Because these fields share a common value when that value is updated, clear all the cached values.
|
void |
setOn(Boolean newValue)
Sets the status of the feature flag.
|
static CacheFeatureFlag |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CacheFeatureFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
isSet, name
public static final CacheFeatureFlag NONE
public static final CacheFeatureFlag TTL
public static final CacheFeatureFlag LOCAL_SIGNATURE
public static final CacheFeatureFlag ETAG
public static CacheFeatureFlag[] values()
for (CacheFeatureFlag c : CacheFeatureFlag.values()) System.out.println(c);
public static CacheFeatureFlag valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String getName()
FeatureFlag
getName
in interface FeatureFlag
public boolean isOn()
FeatureFlag
isOn
in interface FeatureFlag
public void setOn(Boolean newValue)
FeatureFlag
setOn
in interface FeatureFlag
newValue
- The new status of the feature flag.protected static void resetAll()
public void reset()
FeatureFlag
reset
in interface FeatureFlag
Copyright © 2016–2018 Yahoo! Inc.. All rights reserved.