net.sf.asterisk.manager.event
Class QueueEvent

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

public abstract class QueueEvent
extends ManagerEvent

Abstract base class providing common properties for JoinEvent and LeaveEvent.

Version:
$Id: QueueEvent.java,v 1.2 2005/02/23 22:50:58 srt Exp $
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 a 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.
 void setChannel(java.lang.String channel)
          Sets the name of the channel that joines or leaves a 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.
 
Methods inherited from class net.sf.asterisk.manager.event.ManagerEvent
getDateReceived, getPrivilege, setDateReceived, setPrivilege, 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

getChannel

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


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel that joines or leaves a 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.



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