Asterisk-Java

org.asteriskjava.manager.event
Class QueueEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.QueueEvent
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
JoinEvent, LeaveEvent, QueueCallerAbandonEvent

public abstract class QueueEvent
extends ManagerEvent

Abstract base class providing common properties for JoinEvent and LeaveEvent.

Version:
$Id: QueueEvent.java 938 2007-12-31 03:23:38Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
QueueEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getChannel()
          Returns the name of the channel that joines or leaves the queue.
 java.lang.Integer getCount()
          Returns the number of elements in the queue, i.e.
 java.lang.String getQueue()
          Returns the name of the queue.
 java.lang.String getUniqueId()
          Returns the unique id of the channel that joines or leaves the queue.
 void setChannel(java.lang.String channel)
          Sets the name of the channel that joines or leaves the queue.
 void setCount(java.lang.Integer count)
          Sets the number of elements in the queue.
 void setQueue(java.lang.String queue)
          Sets the name of the queue.
 void setUniqueId(java.lang.String uniqueId)
          Sets the unique id of the channel that joines or leaves the queue.
 
Methods inherited from class org.asteriskjava.manager.event.ManagerEvent
appendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, 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

QueueEvent

public QueueEvent(java.lang.Object source)
Parameters:
source -
Method Detail

getUniqueId

public java.lang.String getUniqueId()
Returns the unique id of the channel that joines or leaves the queue.

This property is only available since Asterisk 1.4. Up to Asterisk 1.2 this method always returns null.

See Asterisk issues 6458 and 7002.

Returns:
the unique id of the channel that joines or leaves the queue or null if not supported by your Asterisk server.
Since:
0.3

setUniqueId

public void setUniqueId(java.lang.String uniqueId)
Sets the unique id of the channel that joines or leaves the queue.

Parameters:
uniqueId - the unique id of the channel that joines or leaves the queue.
Since:
0.3

getChannel

public java.lang.String getChannel()
Returns the name of the channel that joines or leaves the queue.


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel that joines or leaves the queue.


getCount

public java.lang.Integer getCount()
Returns the number of elements in the queue, i.e. the number of calls waiting to be answered by an agent.


setCount

public void setCount(java.lang.Integer count)
Sets the number of elements in the queue.


getQueue

public java.lang.String getQueue()
Returns the name of the queue.


setQueue

public void setQueue(java.lang.String queue)
Sets the name of the queue.


Asterisk-Java

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