|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
org.asteriskjava.manager.event.ManagerEvent
org.asteriskjava.manager.event.ResponseEvent
org.asteriskjava.manager.event.QueueParamsEvent
public class QueueParamsEvent
A QueueParamsEvent is triggered in response to a QueueStatusAction and contains the parameters of a queue.
It is implemented in apps/app_queue.c
QueueStatusAction
,
Serialized FormField Summary |
---|
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
QueueParamsEvent(java.lang.Object source)
|
Method Summary | |
---|---|
java.lang.Integer |
getAbandoned()
Returns the number of abandoned calls. |
java.lang.Integer |
getCalls()
Returns the number of calls currently waiting in the queue. |
java.lang.Integer |
getCompleted()
Returns the number of completed calls. |
java.lang.Integer |
getHoldTime()
Returns the current average holdtime for this queue (in seconds). |
java.lang.Integer |
getMax()
Returns the maximum number of people waiting in the queue or 0 for unlimited. |
java.lang.String |
getQueue()
Returns the name of the queue. |
java.lang.Integer |
getServiceLevel()
Returns the service level (in seconds) as defined by the servicelevel setting
in queues.conf . |
java.lang.Double |
getServiceLevelPerf()
Returns the ratio of calls answered within the specified service level per total completed calls (in percent). |
java.lang.String |
getStrategy()
Returns the strategy used for this queue. |
java.lang.Integer |
getTalkTime()
Returns the current avarage talk time for this queue based on an exponential average. |
java.lang.Integer |
getWeight()
Returns the weight of this queue. |
void |
setAbandoned(java.lang.Integer abandoned)
Sets the number of abandoned calls. |
void |
setCalls(java.lang.Integer calls)
Sets the number of calls currently waiting in the queue. |
void |
setCompleted(java.lang.Integer complete)
Sets the number of completed calls. |
void |
setHoldTime(java.lang.Integer holdTime)
Sets the current average holdtime for this queue. |
void |
setMax(java.lang.Integer max)
Sets the maximum number of people waiting in the queue. |
void |
setQueue(java.lang.String queue)
Sets the name of the queue. |
void |
setServiceLevel(java.lang.Integer serviceLevel)
Sets the service level. |
void |
setServiceLevelPerf(java.lang.Double serviceLevelPerf)
Sets the ratio of calls answered within the specified service level per total completed calls. |
void |
setStrategy(java.lang.String strategy)
Sets the strategy used for this queue. |
void |
setTalkTime(java.lang.Integer talkTime)
Sets the current avarage talk time for this queue based on an exponential average. |
void |
setWeight(java.lang.Integer weight)
Sets the weight of this queue. |
Methods inherited from class org.asteriskjava.manager.event.ResponseEvent |
---|
getActionId, getInternalActionId, setActionId, setInternalActionId |
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent |
---|
getDateReceived, getPrivilege, getServer, getTimestamp, setDateReceived, setPrivilege, setServer, setTimestamp, toString |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public QueueParamsEvent(java.lang.Object source)
Method Detail |
---|
public java.lang.String getQueue()
public void setQueue(java.lang.String queue)
queue
- the name of the queue.public java.lang.Integer getMax()
This corresponds to the maxlen
setting in queues.conf
.
public void setMax(java.lang.Integer max)
max
- the maximum number of people waiting in the queue or 0 for unlimited.public java.lang.String getStrategy()
Possible values are:
public void setStrategy(java.lang.String strategy)
strategy
- the strategy used for this queue.public java.lang.Integer getCalls()
public void setCalls(java.lang.Integer calls)
calls
- the number of calls currently waiting in the queue.public java.lang.Integer getHoldTime()
public void setHoldTime(java.lang.Integer holdTime)
holdTime
- the current average holdtime for this queue (in seconds).public java.lang.Integer getTalkTime()
public void setTalkTime(java.lang.Integer talkTime)
talkTime
- the current avarage talk time for this queue.public java.lang.Integer getCompleted()
public void setCompleted(java.lang.Integer complete)
complete
- the number of completed calls.public java.lang.Integer getAbandoned()
public void setAbandoned(java.lang.Integer abandoned)
abandoned
- the number of abandoned calls.public java.lang.Integer getServiceLevel()
servicelevel
setting
in queues.conf
.
public void setServiceLevel(java.lang.Integer serviceLevel)
serviceLevel
- the service level (in seconds).public java.lang.Double getServiceLevelPerf()
public void setServiceLevelPerf(java.lang.Double serviceLevelPerf)
serviceLevelPerf
- the ratio of calls answered within the specified service level per total completed
calls (in percent).public java.lang.Integer getWeight()
A queue can be assigned a 'weight' to ensure calls waiting in a higher priority queue will deliver its calls first. Only delays the lower weight queue's call if the member is also in the higher weight queue.
Available since Asterisk 1.2
null
if not
supported by your version of Asteriskpublic void setWeight(java.lang.Integer weight)
weight
- the weight of this queue
|
Asterisk-Java | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |