Class PollingConfig
java.lang.Object
com.inductiveautomation.perspective.common.config.binding.PollingConfig
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PollingConfig
fromJson
(com.inductiveautomation.ignition.common.gson.JsonObject jsonObject) Parses a json object expected to have "enabled" and "rate" in it.
-
Field Details
-
enabled
public final boolean enabled -
expression
-
-
Constructor Details
-
PollingConfig
-
-
Method Details
-
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
- Returns:
- The polling rate expression, or null if polling is disabled
-