Class PollingRate
java.lang.Object
com.inductiveautomation.ignition.common.PollingRate
- All Implemented Interfaces:
Serializable
Represents a polling rate, either off, relative, or absolute, with a time value in milliseconds
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic PollingRate
Parses a CSV-style rate string.int
getMode()
int
getRate()
void
setMode
(int mode) void
setRate
(int rate) Returns the polling rate in the format:mode + ":" + rate
where both mode and rate are integers.
-
Field Details
-
POLLING_RELATIVE_RATE
public static final int POLLING_RELATIVE_RATE- See Also:
-
POLLING_ABSOLUTE_RATE
public static final int POLLING_ABSOLUTE_RATE- See Also:
-
POLLING_OFF
public static final int POLLING_OFF- See Also:
-
-
Constructor Details
-
PollingRate
public PollingRate() -
PollingRate
public PollingRate(int mode, int rate)
-
-
Method Details
-
getMode
public int getMode() -
setMode
public void setMode(int mode) -
getRate
public int getRate() -
setRate
public void setRate(int rate) -
toCSVString
Returns the polling rate in the format:mode + ":" + rate
where both mode and rate are integers. -
fromCSVString
Parses a CSV-style rate string. SeetoCSVString()
. Swallows errors, printing them out to syserr, returning a default polling rate object.
-