Class QueueDetails

java.lang.Object
org.jivesoftware.smackx.workgroup.packet.QueueDetails
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 final class QueueDetails extends Object implements org.jivesoftware.smack.packet.ExtensionElement
Queue details stanza extension, which contains details about the users currently in a queue.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Provider class for QueueDetails stanza extensions.
  • 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
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
    int
    Returns the number of users currently in the queue that are waiting to be routed to an agent.
    Returns the set of users in the queue that are waiting to be routed to an agent (as QueueUser objects).
    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

    • QueueDetails

      public QueueDetails()
  • Method Details

    • getUserCount

      public int getUserCount()
      Returns the number of users currently in the queue that are waiting to be routed to an agent.
      Returns:
      the number of users in the queue.
    • getUsers

      public Set<QueueUser> getUsers()
      Returns the set of users in the queue that are waiting to be routed to an agent (as QueueUser objects).
      Returns:
      a Set for the users waiting in a queue.
    • 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
    • toXML

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