Package org.igniterealtime.jbosh
Class AttrPolling
java.lang.Object
org.igniterealtime.jbosh.AbstractAttr<Integer>
org.igniterealtime.jbosh.AbstractIntegerAttr
org.igniterealtime.jbosh.AttrPolling
- All Implemented Interfaces:
Comparable
Data type representing the getValue of the
polling
attribute of the
bosh
element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static AttrPolling
createFromString
(String str) Creates a new attribute instance from the provided String.int
Get the polling interval in milliseconds.Methods inherited from class org.igniterealtime.jbosh.AbstractIntegerAttr
checkMinValue, intValue
-
Constructor Details
-
AttrPolling
Creates a new attribute object.- Parameters:
val
- attribute getValue- Throws:
BOSHException
- on parse or validation failure
-
-
Method Details
-
createFromString
Creates a new attribute instance from the provided String.- Parameters:
str
- string representation of the attribute- Returns:
- instance of the attribute for the specified string, or
null
if input string isnull
- Throws:
BOSHException
- on parse or validation failure
-
getInMilliseconds
public int getInMilliseconds()Get the polling interval in milliseconds.- Returns:
- polling interval in milliseconds
-