public class Agent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
Agent.State |
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.
|
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.
|
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 void addOffer(Offer offer)
offer
- offer to add.public void addRoom(Room room)
room
- room to add.public int getBusySlots()
public 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 BareJID getWorkgroupQueue()
public boolean isAgentStatusUpdateRequested()
public void setAgentStatusUpdateRequested(boolean agentStatusUpdateRequested)
public void removeOffer(Offer offer)
public void removeRoom(Room room)
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.