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 TypeMethodDescriptionvoid
Adds offer to agent.void
Adds room to agent.boolean
int
Returns 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.int
hashCode()
boolean
void
removeOffer
(Offer offer) void
removeRoom
(Room room) void
setAgentStatusUpdateRequested
(boolean agentStatusUpdateRequested) void
setLastUpdateSendTime
(Date lastUpdateSendTime) void
setMaxChats
(Integer maxChats) void
setState
(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
-