Android SDK Version


public final class GateKeeperRuntimeCache
Constructor Summary
ConstructorDescription
GateKeeperRuntimeCache()
Method Summary
Modifier and TypeMethodDescription
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Constructor Detail

GateKeeperRuntimeCache

GateKeeperRuntimeCache()
Method Detail

setGateKeepers

 final UnitsetGateKeepers(String appId, List<GateKeeper> gateKeeperList)
Set the cache with a list of name-value pairs
Parameters:
appId - Application ID
gateKeeperList - 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 BooleangetGateKeeperValue(String appId, String name, Boolean defaultValue)
Get GateKeeper value with the name
Parameters:
name - the name of the GateKeeper
defaultValue - return it if the GateKeeper doesn't exists

setGateKeeperValue

 final UnitsetGateKeeperValue(String appId, String name, Boolean value)
Set GateKeeper value with the name
Parameters:
appId - Application ID
name - the name of the GateKeeper
value - the new value for this GateKeeper

getGateKeeper

 final GateKeepergetGateKeeper(String appId, String name)
Get GateKeeper with the name
Parameters:
appId - Application ID
name - the name of the GateKeeper

setGateKeeper

 final UnitsetGateKeeper(String appId, GateKeeper gateKeeper)
Set GateKeeper with a GateKeeper object
Parameters:
appId - Application ID
gateKeeper - the GateKeeper object of name-value pair.

resetCache

 final UnitresetCache(String appId)
Reset GateKeeper cache of an application
Parameters:
appId - Application ID