Class WorkgroupQueue
java.lang.Object
org.jivesoftware.smackx.workgroup.agent.WorkgroupQueue
A queue in a workgroup, which is a pool of agents that are routed a specific type of
chat request.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
A class to represent the status of the workgroup. -
Method Summary
Modifier and TypeMethodDescriptionint
Returns the average amount of time users wait in the queue before being routed to an agent.int
Returns the current number of active chat sessions in the queue.int
Returns the maximum number of simultaneous chats the queue can handle.getName()
Returns the name of the queue.Returns the date of the oldest request waiting in the queue.Returns the status of the queue.int
Returns the number of users waiting in the queue waiting to be routed to an agent.getUsers()
Returns an Iterator for the users in the queue waiting to be routed to an agent (QueueUser instances).
-
Method Details
-
getName
Returns the name of the queue.- Returns:
- the name of the queue.
-
getStatus
Returns the status of the queue.- Returns:
- the status of the queue.
-
getUserCount
Returns the number of users waiting in the queue waiting to be routed to an agent.- Returns:
- the number of users waiting in the queue.
-
getUsers
Returns an Iterator for the users in the queue waiting to be routed to an agent (QueueUser instances).- Returns:
- an Iterator for the users waiting in the queue.
-
getAverageWaitTime
Returns the average amount of time users wait in the queue before being routed to an agent. If average wait time info isn't available, -1 will be returned.- Returns:
- the average wait time
-
getOldestEntry
Returns the date of the oldest request waiting in the queue. If there are no requests waiting to be routed, this method will returnnull
.- Returns:
- the date of the oldest request in the queue.
-
getMaxChats
Returns the maximum number of simultaneous chats the queue can handle.- Returns:
- the max number of chats the queue can handle.
-
getCurrentChats
Returns the current number of active chat sessions in the queue.- Returns:
- the current number of active chat sessions in the queue.
-