Package org.igniterealtime.jbosh
Class AttrMaxPause
- java.lang.Object
-
- org.igniterealtime.jbosh.AbstractAttr<java.lang.Integer>
-
- org.igniterealtime.jbosh.AbstractIntegerAttr
-
- org.igniterealtime.jbosh.AttrMaxPause
-
- All Implemented Interfaces:
java.lang.Comparable
final class AttrMaxPause extends AbstractIntegerAttr
Data type representing the getValue of themaxpauseattribute of theboshelement.
-
-
Constructor Summary
Constructors Modifier Constructor Description privateAttrMaxPause(java.lang.String val)Creates a new attribute object.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static AttrMaxPausecreateFromString(java.lang.String str)Creates a new attribute instance from the provided String.intgetInMilliseconds()Get the max pause time in milliseconds.-
Methods inherited from class org.igniterealtime.jbosh.AbstractIntegerAttr
checkMinValue, intValue
-
-
-
-
Constructor Detail
-
AttrMaxPause
private AttrMaxPause(java.lang.String val) throws BOSHExceptionCreates a new attribute object.- Parameters:
val- attribute getValue- Throws:
BOSHException- on parse or validation failure
-
-
Method Detail
-
createFromString
static AttrMaxPause createFromString(java.lang.String str) throws BOSHException
Creates a new attribute instance from the provided String.- Parameters:
str- string representation of the attribute- Returns:
- attribute instance or
nullif provided string isnull - Throws:
BOSHException- on parse or validation failure
-
getInMilliseconds
public int getInMilliseconds()
Get the max pause time in milliseconds.- Returns:
- pause tme in milliseconds
-
-