public class DefaultRuleLoader extends java.lang.Object implements RuleLoader
| Constructor and Description |
|---|
DefaultRuleLoader() |
| Modifier and Type | Method and Description |
|---|---|
protected <any> |
executeRequest(GetRequest getRequest) |
protected GetRequest |
generateRequest(ClientConfig clientConfig) |
java.util.Date |
getLastFetch() |
OnDeviceDecisioningRuleSet |
getLatestRules() |
java.lang.String |
getLocation() |
int |
getNumFetches() |
long |
getPollingInterval() |
protected boolean |
loadRules(ClientConfig clientConfig) |
void |
refresh() |
protected void |
setLatestETag(java.lang.String etag) |
protected void |
setLatestRules(OnDeviceDecisioningRuleSet ruleSet) |
void |
start(ClientConfig clientConfig,
TelemetryService telemetryService) |
void |
stop() |
public OnDeviceDecisioningRuleSet getLatestRules()
getLatestRules in interface RuleLoaderpublic void start(ClientConfig clientConfig, TelemetryService telemetryService)
start in interface RuleLoaderpublic void stop()
stop in interface RuleLoaderpublic void refresh()
refresh in interface RuleLoaderpublic long getPollingInterval()
getPollingInterval in interface RuleLoaderpublic int getNumFetches()
getNumFetches in interface RuleLoaderpublic java.util.Date getLastFetch()
getLastFetch in interface RuleLoaderpublic java.lang.String getLocation()
getLocation in interface RuleLoaderprotected GetRequest generateRequest(ClientConfig clientConfig)
protected <any> executeRequest(GetRequest getRequest)
protected void setLatestRules(OnDeviceDecisioningRuleSet ruleSet)
protected void setLatestETag(java.lang.String etag)
protected boolean loadRules(ClientConfig clientConfig)