net.sf.asterisk.manager.event
Class QueueEntryEvent

java.lang.Object
  extended by java.util.EventObject
      extended by net.sf.asterisk.manager.event.ManagerEvent
          extended by net.sf.asterisk.manager.event.ResponseEvent
              extended by net.sf.asterisk.manager.event.QueueEntryEvent
All Implemented Interfaces:
java.io.Serializable

public class QueueEntryEvent
extends ResponseEvent

A QueueEntryEvent is triggered in response to a QueueStatusAction and contains information about an entry in a queue.
It is implemented in apps/app_queue.c

Version:
$Id: QueueEntryEvent.java,v 1.3 2005/08/27 09:36:24 srt Exp $
Author:
srt
See Also:
QueueStatusAction, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
QueueEntryEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getCallerId()
          Returns the the Caller*ID number of this entry.
 java.lang.String getCallerIdName()
          Returns the Caller*ID name of this entry.
 java.lang.String getChannel()
          Returns the name of the channel of this entry.
 java.lang.Integer getPosition()
          Returns the position of this entry in the queue.
 java.lang.String getQueue()
          Returns the name of the queue that contains this entry.
 java.lang.Long getWait()
          Returns the number of seconds this entry has spent in the queue.
 void setCallerId(java.lang.String callerId)
          Sets the the Caller*ID number of this entry.
 void setCallerIdName(java.lang.String callerIdName)
          Sets the Caller*ID name of this entry.
 void setChannel(java.lang.String channel)
          Sets the name of the channel of this entry.
 void setPosition(java.lang.Integer position)
          Sets the position of this entry in the queue.
 void setQueue(java.lang.String queue)
          Sets the name of the queue that contains this entry.
 void setWait(java.lang.Long wait)
          Sets the number of seconds this entry has spent in the queue.
 
Methods inherited from class net.sf.asterisk.manager.event.ResponseEvent
getActionId, getInternalActionId, setActionId, setInternalActionId
 
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

QueueEntryEvent

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

getQueue

public java.lang.String getQueue()
Returns the name of the queue that contains this entry.


setQueue

public void setQueue(java.lang.String queue)
Sets the name of the queue that contains this entry.


getPosition

public java.lang.Integer getPosition()
Returns the position of this entry in the queue.


setPosition

public void setPosition(java.lang.Integer position)
Sets the position of this entry in the queue.


getChannel

public java.lang.String getChannel()
Returns the name of the channel of this entry.


setChannel

public void setChannel(java.lang.String channel)
Sets the name of the channel of this entry.


getCallerId

public java.lang.String getCallerId()
Returns the the Caller*ID number of this entry.

Returns:
the the Caller*ID number of this entry.

setCallerId

public void setCallerId(java.lang.String callerId)
Sets the the Caller*ID number of this entry.

Parameters:
callerId - the the Caller*ID number of this entry.

getCallerIdName

public java.lang.String getCallerIdName()
Returns the Caller*ID name of this entry.

Returns:
the Caller*ID name of this entry.
Since:
0.2

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)
Sets the Caller*ID name of this entry.

Parameters:
callerIdName - the Caller*ID name of this entry.
Since:
0.2

getWait

public java.lang.Long getWait()
Returns the number of seconds this entry has spent in the queue.


setWait

public void setWait(java.lang.Long wait)
Sets the number of seconds this entry has spent in the queue.



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