Package org.igniterealtime.jbosh
Class AttrPause
java.lang.Object
org.igniterealtime.jbosh.AbstractAttr<Integer>
org.igniterealtime.jbosh.AbstractIntegerAttr
org.igniterealtime.jbosh.AttrPause
- All Implemented Interfaces:
Comparable
Data type representing the getValue of the
pause
attribute of the
bosh
element.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static AttrPause
createFromString
(String str) Creates a new attribute instance from the provided String.int
Get the pause time in milliseconds.Methods inherited from class org.igniterealtime.jbosh.AbstractIntegerAttr
checkMinValue, intValue
-
Constructor Details
-
AttrPause
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:
- attribute instance or
null
if provided string isnull
- Throws:
BOSHException
- on parse or validation failure
-
getInMilliseconds
public int getInMilliseconds()Get the pause time in milliseconds.- Returns:
- pause tme in milliseconds
-