public interface AsteriskQueue
Modifier and Type | Field and Description |
---|---|
static String |
STRATAGY_LEAST_RECENT |
static String |
STRATEGY_FEWEST_CALLS |
static String |
STRATEGY_RANDOM |
static String |
STRATEGY_RINGALL |
static String |
STRATEGY_ROUNDROBIN |
static String |
STRATEGY_RRMEMORY |
Modifier and Type | Method and Description |
---|---|
void |
addAsteriskQueueListener(AsteriskQueueListener listener)
Registers a new queue listener.
|
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.
|
List<AsteriskQueueEntry> |
getEntries()
Returns the list of entries currently waiting in this queue.
|
Integer |
getHoldTime()
Returns the current average holdtime for this queue (in seconds).
|
long |
getLastUpdateMillis()
timestamp (miliseconds) of last update of this object
|
Integer |
getMax()
Returns the maximum number of people allowed to wait in this queue or 0
for unlimited.
|
Collection<AsteriskQueueMember> |
getMembers()
Returns the list of Asterisk members of this queue.
|
String |
getName()
Returns the name of this queue as defined in Asterisk's
queues.conf . |
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).
|
String |
getStrategy()
Returns the strategy used for this queue.
|
Integer |
getTalkTime()
Returns the current average talk time for this queue based on an exponential average.
|
Integer |
getWaiting()
Returns the number of calls currently waiting in the queue.
|
Integer |
getWeight()
Returns the weight of this queue.
|
void |
removeAsteriskQueueListener(AsteriskQueueListener listener)
Removes a previously registered queue listener.
|
static final String STRATEGY_RINGALL
static final String STRATEGY_ROUNDROBIN
static final String STRATAGY_LEAST_RECENT
static final String STRATEGY_FEWEST_CALLS
static final String STRATEGY_RANDOM
static final String STRATEGY_RRMEMORY
String getName()
queues.conf
.Integer getMax()
maxlen
option in Asterisk's
queues.conf
.String getStrategy()
Integer getServiceLevel()
servicelevel
setting in queues.conf
.Integer getWeight()
null
if not supported
by your version of Asterisk.List<AsteriskQueueEntry> getEntries()
Collection<AsteriskQueueMember> getMembers()
void addAsteriskQueueListener(AsteriskQueueListener listener)
listener
- the listener to add.void removeAsteriskQueueListener(AsteriskQueueListener listener)
listener
- the listener to remove.Integer getAbandoned()
Double getServiceLevelPerf()
Integer getCompleted()
Integer getTalkTime()
Integer getHoldTime()
Integer getCalls()
getWaiting()
Integer getWaiting()
long getLastUpdateMillis()
Copyright © 2004–2017. All rights reserved.