Class AttrPause

  • All Implemented Interfaces:
    java.lang.Comparable

    final class AttrPause
    extends AbstractIntegerAttr
    Data type representing the getValue of the pause attribute of the bosh element.
    • Constructor Detail

      • AttrPause

        private AttrPause​(java.lang.String val)
                   throws BOSHException
        Creates a new attribute object.
        Parameters:
        val - attribute getValue
        Throws:
        BOSHException - on parse or validation failure
    • Method Detail

      • createFromString

        static AttrPause 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 null if provided string is null
        Throws:
        BOSHException - on parse or validation failure
      • getInMilliseconds

        public int getInMilliseconds()
        Get the pause time in milliseconds.
        Returns:
        pause tme in milliseconds