net.sf.asterisk.manager.event
Class JoinEvent

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

public class JoinEvent
extends QueueEvent

A JoinEvent is triggered when a channel joines a queue.
It is implemented in apps/app_queue.c

Version:
$Id: JoinEvent.java,v 1.3 2005/08/27 03:20:13 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
protected  java.lang.String callerId
           
protected  java.lang.String callerIdName
           
protected  java.lang.Integer position
           
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
JoinEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.String getCallerId()
          Returns the Caller*ID number of the channel that joined the queue if set.
 java.lang.String getCallerIdName()
          Returns the Caller*ID name of the channel that joined the queue if set.
 java.lang.Integer getPosition()
          Returns the position of the joined channel in the queue.
 void setCallerId(java.lang.String callerId)
          Sets the Caller*ID number of the channel that joined the queue.
 void setCallerIdName(java.lang.String callerIdName)
          Sets the Caller*ID name of the channel that joined the queue.
 void setPosition(java.lang.Integer position)
          Sets the position of the joined channel in the queue.
 
Methods inherited from class net.sf.asterisk.manager.event.QueueEvent
getChannel, getCount, getQueue, setChannel, setCount, setQueue
 
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
 

Field Detail

callerId

protected java.lang.String callerId

callerIdName

protected java.lang.String callerIdName

position

protected java.lang.Integer position
Constructor Detail

JoinEvent

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

getCallerId

public java.lang.String getCallerId()
Returns the Caller*ID number of the channel that joined the queue if set. If the channel has no caller id set "unknown" is returned.


setCallerId

public void setCallerId(java.lang.String callerId)
Sets the Caller*ID number of the channel that joined the queue.


getCallerIdName

public java.lang.String getCallerIdName()
Returns the Caller*ID name of the channel that joined the queue if set. If the channel has no caller id set "unknown" is returned.

Since:
0.2

setCallerIdName

public void setCallerIdName(java.lang.String callerIdName)
Sets the Caller*ID name of the channel that joined the queue.

Since:
0.2

getPosition

public java.lang.Integer getPosition()
Returns the position of the joined channel in the queue.


setPosition

public void setPosition(java.lang.Integer position)
Sets the position of the joined channel in the queue.



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