Package tigase.workgroupqueues.scheduler
Class Queue
java.lang.Object
tigase.workgroupqueues.scheduler.Queue
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
boolean
int
Return the total number of agents available in the workgroup.int
int
Returns current total number of chats being handled by agents in the workgroup.getJid()
int
Returns maximum number of simultaneous conversations that can be handled by agents in the workgroup.Returns date and time when the oldest member of the queue joined.getStats()
getUsers()
int
hashCode()
void
removeAgent
(Agent agent) removeOffer
(Queue queue, JID userJID, Agent agent) void
removeUser
(User user) void
setStatus
(Queue.Status status) toString()
-
Constructor Details
-
Queue
-
-
Method Details
-
addAgent
-
addOffer
-
addUser
-
equals
-
getAgent
-
getAgents
-
getAvailableAgents
public int getAvailableAgents()Return the total number of agents available in the workgroup.- Returns:
- number of agents.
-
getAverageWaitingTime
public int getAverageWaitingTime() -
getCurrentChats
public int getCurrentChats()Returns current total number of chats being handled by agents in the workgroup.- Returns:
- number of chats.
-
getJid
-
getMaxChats
public int getMaxChats()Returns maximum number of simultaneous conversations that can be handled by agents in the workgroup.- Returns:
- maximum number of simultaneous conversations.
-
getMucDomain
-
getOffers
-
getOldestTime
Returns date and time when the oldest member of the queue joined.- Returns:
- join time of oldest member.
-
getStats
-
getStatus
-
setStatus
-
getUser
-
getUsers
-
hashCode
public int hashCode() -
removeAgent
-
removeOffer
-
removeUser
-
toString
-