Class QueueUpdate
java.lang.Object
org.jivesoftware.smackx.workgroup.packet.QueueUpdate
- All Implemented Interfaces:
Element,ExtensionElement,NamedElement,XmlElement,XmlLangElement
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 -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the root element name.Returns the root element XML namespace.intReturns the user's position in the workgroup queue, or -1 if the value isn't set on this packet.intReturns the user's estimated time left in the workgroup queue, or -1 if the value isn't set on this packet.toXML(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.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
-
QueueUpdate
-
-
Method Details
-
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
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
-
getElementName
Description copied from interface:NamedElementReturns the root element name.- Specified by:
getElementNamein interfaceNamedElement- Returns:
- the element name.
-
getNamespace
Description copied from interface:XmlElementReturns the root element XML namespace.- Specified by:
getNamespacein interfaceXmlElement- Returns:
- the namespace.
-