Class AttrPolling

All Implemented Interfaces:
Comparable

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

    • AttrPolling

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

    • createFromString

      static AttrPolling createFromString(String str) throws BOSHException
      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 is null
      Throws:
      BOSHException - on parse or validation failure
    • getInMilliseconds

      public int getInMilliseconds()
      Get the polling interval in milliseconds.
      Returns:
      polling interval in milliseconds