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 ClassesModifier and TypeClassDescriptionstatic classProvider class for QueueDetails stanza extensions. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of users currently in the queue that are waiting to be routed to an agent.getUsers()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, waitMethods inherited from interface org.jivesoftware.smack.packet.Element
toXML, toXMLMethods inherited from interface org.jivesoftware.smack.packet.XmlElement
getLanguage, getQName
-
Field Details
-
ELEMENT_NAME
Element name of the stanza extension.- See Also:
-
NAMESPACE
Namespace of the stanza extension.- See Also:
-
QNAME
-
-
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
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
- Specified by:
getElementNamein interfaceorg.jivesoftware.smack.packet.NamedElement
-
getNamespace
- Specified by:
getNamespacein interfaceorg.jivesoftware.smack.packet.XmlElement
-
toXML
- Specified by:
toXMLin interfaceorg.jivesoftware.smack.packet.Element
-