Class PollingConfig
- java.lang.Object
 - 
- com.inductiveautomation.perspective.common.config.binding.PollingConfig
 
 
- 
public class PollingConfig extends java.lang.Object 
- 
- 
Field Summary
Fields Modifier and Type Field Description booleanenabledjava.lang.Stringexpression 
- 
Constructor Summary
Constructors Constructor Description PollingConfig(boolean enabled, java.lang.String expression) 
- 
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PollingConfigfromJson(com.inductiveautomation.ignition.common.gson.JsonObject jsonObject)Parses a json object expected to have "enabled" and "rate" in it.java.lang.StringgetRateExpression() 
 - 
 
- 
- 
Method Detail
- 
fromJson
public static PollingConfig fromJson(@Nullable com.inductiveautomation.ignition.common.gson.JsonObject jsonObject) throws ConfigurationException
Parses a json object expected to have "enabled" and "rate" in it. If the jsonobject is null, a polling config of enabled=false, rate="30" will be used as a default.- Throws:
 ConfigurationException
 
- 
getRateExpression
@Nullable public java.lang.String getRateExpression()
- Returns:
 - The polling rate expression, or null if polling is disabled
 
 
 - 
 
 -