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 TypeMethodDescriptionvoidvoidvoidbooleanintReturn the total number of agents available in the workgroup.intintReturns current total number of chats being handled by agents in the workgroup.getJid()intReturns 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()inthashCode()voidremoveAgent(Agent agent) removeOffer(Queue queue, JID userJID, Agent agent) voidremoveUser(User user) voidsetStatus(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
-