Class QueueUpdate

java.lang.Object
org.jivesoftware.smackx.workgroup.packet.QueueUpdate
All Implemented Interfaces:
org.jivesoftware.smack.packet.Element, org.jivesoftware.smack.packet.ExtensionElement, org.jivesoftware.smack.packet.NamedElement, org.jivesoftware.smack.packet.XmlElement, org.jivesoftware.smack.packet.XmlLangElement

public class QueueUpdate extends Object implements org.jivesoftware.smack.packet.ExtensionElement
An IQ stanza that encapsulates both types of workgroup queue status notifications -- position updates, and estimated time left in the queue updates.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Element name of the stanza extension.
    static final String
    Namespace of the stanza extension.
    static final QName
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    QueueUpdate(int position, int remainingTime)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    int
    Returns the user's position in the workgroup queue, or -1 if the value isn't set on this packet.
    int
    Returns the user's estimated time left in the workgroup queue, or -1 if the value isn't set on this packet.
    toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jivesoftware.smack.packet.Element

    toXML, toXML

    Methods inherited from interface org.jivesoftware.smack.packet.XmlElement

    getLanguage, getQName
  • Field Details

  • Constructor Details

    • QueueUpdate

      public QueueUpdate(int position, int remainingTime)
  • Method Details

    • getPosition

      public int getPosition()
      Returns the user's position in the workgroup queue, or -1 if the value isn't set on this packet.
      Returns:
      the position in the workgroup queue.
    • getRemaingTime

      public int getRemaingTime()
      Returns the user's estimated time left in the workgroup queue, or -1 if the value isn't set on this packet.
      Returns:
      the estimated time left in the workgroup queue.
    • toXML

      public String toXML(org.jivesoftware.smack.packet.XmlEnvironment enclosingNamespace)
      Specified by:
      toXML in interface org.jivesoftware.smack.packet.Element
    • getElementName

      public String getElementName()
      Specified by:
      getElementName in interface org.jivesoftware.smack.packet.NamedElement
    • getNamespace

      public String getNamespace()
      Specified by:
      getNamespace in interface org.jivesoftware.smack.packet.XmlElement