Class AttrMaxPause

All Implemented Interfaces:
Comparable

final class AttrMaxPause extends AbstractIntegerAttr
Data type representing the getValue of the maxpause attribute of the bosh element.
  • Constructor Details

    • AttrMaxPause

      private AttrMaxPause(String val) throws BOSHException
      Creates a new attribute object.
      Parameters:
      val - attribute getValue
      Throws:
      BOSHException - on parse or validation failure
  • Method Details

    • createFromString

      static AttrMaxPause createFromString(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 max pause time in milliseconds.
      Returns:
      pause tme in milliseconds