public class QueueParamsEvent extends ResponseEvent
It is implemented in apps/app_queue.c
QueueStatusAction
,
Serialized FormcallerIdName, callerIdNum, channelState, channelStateDesc, connectedLineName, connectedLineNum, context, exten, priority
source
Constructor and Description |
---|
QueueParamsEvent(Object source) |
Modifier and Type | Method and Description |
---|---|
Integer |
getAbandoned()
Returns the number of abandoned calls.
|
Integer |
getCalls()
Returns the number of calls currently waiting in the queue.
|
Integer |
getCompleted()
Returns the number of completed calls.
|
Integer |
getHoldTime()
Returns the current average holdtime for this queue (in seconds).
|
Integer |
getMax()
Returns the maximum number of people waiting in the queue or 0 for unlimited.
|
String |
getQueue()
Returns the name of the queue.
|
Integer |
getServiceLevel()
Returns the service level (in seconds) as defined by the
servicelevel setting
in queues.conf . |
Double |
getServiceLevelPerf()
Returns the ratio of calls answered within the specified service level per total completed
calls (in percent).
|
Double |
getServiceLevelPerf2() |
String |
getStrategy()
Returns the strategy used for this queue.
|
Integer |
getTalkTime()
Returns the current avarage talk time for this queue based on an exponential average.
|
Integer |
getWeight()
Returns the weight of this queue.
|
void |
setAbandoned(Integer abandoned)
Sets the number of abandoned calls.
|
void |
setCalls(Integer calls)
Sets the number of calls currently waiting in the queue.
|
void |
setCompleted(Integer complete)
Sets the number of completed calls.
|
void |
setHoldTime(Integer holdTime)
Sets the current average holdtime for this queue.
|
void |
setMax(Integer max)
Sets the maximum number of people waiting in the queue.
|
void |
setQueue(String queue)
Sets the name of the queue.
|
void |
setServiceLevel(Integer serviceLevel)
Sets the service level.
|
void |
setServiceLevelPerf(Double serviceLevelPerf)
Sets the ratio of calls answered within the specified service level per total completed
calls.
|
void |
setServiceLevelPerf2(Double serviceLevelPerf2) |
void |
setStrategy(String strategy)
Sets the strategy used for this queue.
|
void |
setTalkTime(Integer talkTime)
Sets the current avarage talk time for this queue based on an exponential average.
|
void |
setWeight(Integer weight)
Sets the weight of this queue.
|
getActionId, getInternalActionId, setActionId, setInternalActionId
appendPropertyIfNotNull, getCallerIdName, getCallerIdNum, getChannelState, getChannelStateDesc, getConnectedLineName, getConnectedLineNum, getContext, getDateReceived, getExten, getFile, getFunc, getLine, getPriority, getPrivilege, getSequenceNumber, getServer, getSystemName, getTimestamp, setCallerIdName, setCallerIdNum, setChannelState, setChannelStateDesc, setConnectedLineName, setConnectedLineNum, setContext, setDateReceived, setExten, setFile, setFunc, setLine, setPriority, setPrivilege, setSequenceNumber, setServer, setSystemName, setTimestamp, toString
getSource
public QueueParamsEvent(Object source)
public String getQueue()
public void setQueue(String queue)
queue
- the name of the queue.public Integer getMax()
This corresponds to the maxlen
setting in queues.conf
.
public void setMax(Integer max)
max
- the maximum number of people waiting in the queue or 0 for unlimited.public String getStrategy()
Possible values are:
public void setStrategy(String strategy)
strategy
- the strategy used for this queue.public Integer getCalls()
public void setCalls(Integer calls)
calls
- the number of calls currently waiting in the queue.public Integer getHoldTime()
public void setHoldTime(Integer holdTime)
holdTime
- the current average holdtime for this queue (in seconds).public Integer getTalkTime()
public void setTalkTime(Integer talkTime)
talkTime
- the current avarage talk time for this queue.public Integer getCompleted()
public void setCompleted(Integer complete)
complete
- the number of completed calls.public Integer getAbandoned()
public void setAbandoned(Integer abandoned)
abandoned
- the number of abandoned calls.public Integer getServiceLevel()
servicelevel
setting
in queues.conf
.public void setServiceLevel(Integer serviceLevel)
serviceLevel
- the service level (in seconds).public Double getServiceLevelPerf()
public void setServiceLevelPerf(Double serviceLevelPerf)
serviceLevelPerf
- the ratio of calls answered within the specified service level per total completed
calls (in percent).public 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(Integer weight)
weight
- the weight of this queuepublic Double getServiceLevelPerf2()
public void setServiceLevelPerf2(Double serviceLevelPerf2)
Copyright © 2004–2017. All rights reserved.