Package tigase.workgroupqueues.scheduler
Class Agent
java.lang.Object
tigase.workgroupqueues.scheduler.Agent
Class to represent Agent. Single agent per Queue.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds offer to agent.voidAdds room to agent.booleanintReturns sum of handled chats in room and active offers.getJid()Returns JID of agent.Returns date and time of last sending status update to agent.Returns max amount of chats to handle by this agent.getRooms()getState()Returns status of agent.inthashCode()booleanvoidremoveOffer(Offer offer) voidremoveRoom(Room room) voidsetAgentStatusUpdateRequested(boolean agentStatusUpdateRequested) voidsetLastUpdateSendTime(Date lastUpdateSendTime) voidsetMaxChats(Integer maxChats) voidsetState(Agent.State state) toString()
-
Constructor Details
-
Agent
-
-
Method Details
-
addOffer
Adds offer to agent.- Parameters:
offer- offer to add.
-
addRoom
Adds room to agent.- Parameters:
room- room to add.
-
equals
-
getBusySlots
public int getBusySlots()Returns sum of handled chats in room and active offers.- Returns:
- sum of handled chats.
-
getJid
Returns JID of agent.- Returns:
- agents JID.
-
getLastUpdateSendTime
Returns date and time of last sending status update to agent.- Returns:
- date of last status.
-
setLastUpdateSendTime
-
getMaxChats
Returns max amount of chats to handle by this agent.- Returns:
- maximum amount of chats allowed to handle by this agent.
-
setMaxChats
-
getOffers
-
getRooms
-
getState
Returns status of agent.- Returns:
- status of agent.
-
setState
-
getWorkgroupQueue
-
hashCode
public int hashCode() -
isAgentStatusUpdateRequested
public boolean isAgentStatusUpdateRequested() -
setAgentStatusUpdateRequested
public void setAgentStatusUpdateRequested(boolean agentStatusUpdateRequested) -
removeOffer
-
removeRoom
-
toString
-