-
public final class GateKeeperRuntimeCache
-
-
Constructor Summary
Constructors Constructor Description GateKeeperRuntimeCache()
-
Method Summary
Modifier and Type Method Description final UnitsetGateKeepers(String appId, List<GateKeeper> gateKeeperList)Set the cache with a list of name-value pairs final List<GateKeeper>dumpGateKeepers(String appId)Dump the cache into a list of GateKeeper final BooleangetGateKeeperValue(String appId, String name, Boolean defaultValue)Get GateKeeper value with the name final UnitsetGateKeeperValue(String appId, String name, Boolean value)Set GateKeeper value with the name final GateKeepergetGateKeeper(String appId, String name)Get GateKeeper with the name final UnitsetGateKeeper(String appId, GateKeeper gateKeeper)Set GateKeeper with a GateKeeper object final UnitresetCache(String appId)Reset GateKeeper cache of an application -
-
Method Detail
-
setGateKeepers
final Unit setGateKeepers(String appId, List<GateKeeper> gateKeeperList)
Set the cache with a list of name-value pairs
- Parameters:
appId- Application IDgateKeeperList- The list of GateKeeper name-value pairs
-
dumpGateKeepers
final List<GateKeeper> dumpGateKeepers(String appId)
Dump the cache into a list of GateKeeper
- Parameters:
appId- Application ID
-
getGateKeeperValue
final Boolean getGateKeeperValue(String appId, String name, Boolean defaultValue)
Get GateKeeper value with the name
- Parameters:
name- the name of the GateKeeper
-
setGateKeeperValue
final Unit setGateKeeperValue(String appId, String name, Boolean value)
Set GateKeeper value with the name
- Parameters:
appId- Application IDname- the name of the GateKeepervalue- the new value for this GateKeeper
-
getGateKeeper
final GateKeeper getGateKeeper(String appId, String name)
Get GateKeeper with the name
- Parameters:
appId- Application IDname- the name of the GateKeeper
-
setGateKeeper
final Unit setGateKeeper(String appId, GateKeeper gateKeeper)
Set GateKeeper with a GateKeeper object
- Parameters:
appId- Application IDgateKeeper- the GateKeeper object of name-value pair.
-
resetCache
final Unit resetCache(String appId)
Reset GateKeeper cache of an application
- Parameters:
appId- Application ID
-
-
-
-