Asterisk-Java

org.asteriskjava.live
Interface AsteriskQueue


public interface AsteriskQueue

An Asterisk ACD queue.

Version:
$Id: AsteriskQueue.java 574 2006-09-27 23:42:41Z srt $
Author:
srt

Method Summary
 java.util.List<AsteriskChannel> getEntries()
          Returns the list of channels currently waiting in this queue.
 java.lang.Integer getMax()
          Returns the maximum number of people allowed to wait in this queue or 0 for unlimited.
 java.lang.String getName()
          Returns the name of this queue as defined in Asterisk's queues.conf.
 java.lang.Integer getServiceLevel()
          Returns the service level (in seconds) as defined by the servicelevel setting in queues.conf.
 java.lang.Integer getWeight()
          Returns the weight of this queue.
 

Method Detail

getName

java.lang.String getName()
Returns the name of this queue as defined in Asterisk's queues.conf.

Returns:
the name of this queue.

getMax

java.lang.Integer getMax()
Returns the maximum number of people allowed to wait in this queue or 0 for unlimited.

Corresponds to the maxlen option in Asterisk's queues.conf.

Returns:
the maximum number of people allowed to wait in this queue.

getServiceLevel

java.lang.Integer getServiceLevel()
Returns the service level (in seconds) as defined by the servicelevel setting in queues.conf.

Returns:
the service level (in seconds).

getWeight

java.lang.Integer getWeight()
Returns the weight of this queue.

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

Returns:
the weight of this queue or null if not supported by your version of Asterisk.

getEntries

java.util.List<AsteriskChannel> getEntries()
Returns the list of channels currently waiting in this queue.

Returns:
the list of channels currently waiting in this queue.

Asterisk-Java

Copyright © 2004-2007 Stefan Reuter. All Rights Reserved.