public class Agent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Agent.State |
Constructor and Description |
---|
Agent(tigase.xmpp.jid.JID jid,
tigase.xmpp.jid.BareJID workgroupQueue) |
Modifier and Type | Method and Description |
---|---|
void |
addOffer(Offer offer)
Adds offer to agent.
|
void |
addRoom(Room room)
Adds room to agent.
|
boolean |
equals(Object o) |
int |
getBusySlots()
Returns sum of handled chats in room and active offers.
|
tigase.xmpp.jid.JID |
getJid()
Returns JID of agent.
|
Date |
getLastUpdateSendTime()
Returns date and time of last sending status update to agent.
|
Integer |
getMaxChats()
Returns max amount of chats to handle by this agent.
|
Collection<Offer> |
getOffers() |
Collection<Room> |
getRooms() |
Agent.State |
getState()
Returns status of agent.
|
tigase.xmpp.jid.BareJID |
getWorkgroupQueue() |
int |
hashCode() |
boolean |
isAgentStatusUpdateRequested() |
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) |
String |
toString() |
public Agent(tigase.xmpp.jid.JID jid, tigase.xmpp.jid.BareJID workgroupQueue)
public void addOffer(Offer offer)
offer
- offer to add.public void addRoom(Room room)
room
- room to add.public int getBusySlots()
public tigase.xmpp.jid.JID getJid()
public Date getLastUpdateSendTime()
public void setLastUpdateSendTime(Date lastUpdateSendTime)
public Integer getMaxChats()
public void setMaxChats(Integer maxChats)
public Collection<Offer> getOffers()
public Collection<Room> getRooms()
public Agent.State getState()
public void setState(Agent.State state)
public tigase.xmpp.jid.BareJID getWorkgroupQueue()
public boolean isAgentStatusUpdateRequested()
public void setAgentStatusUpdateRequested(boolean agentStatusUpdateRequested)
public void removeOffer(Offer offer)
public void removeRoom(Room room)
Copyright © 2016–2019 Tigase. All rights reserved.