net.sf.asterisk.manager.event
Class AgentCompleteEvent

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

public class AgentCompleteEvent
extends AbstractAgentEvent

An AgentCompleteEvent is triggered when at the end of a call if the caller was connected to an agent.
It is implemented in apps/app_queue.c.
Available since Asterisk 1.2

Since:
0.2
Version:
$Id: AgentCompleteEvent.java,v 1.2 2005/08/28 09:45:18 srt Exp $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
AgentCompleteEvent(java.lang.Object source)
           
 
Method Summary
 java.lang.Long getHoldTime()
          Returns the amount of time the caller was on hold.
 java.lang.String getReason()
          Returns if the agent or the caller terminated the call.
 java.lang.Long getTalkTime()
          Returns the amount of time the caller talked to the agent.
 void setHoldTime(java.lang.Long holdtime)
          Sets the amount of time the caller was on hold.
 void setReason(java.lang.String reason)
          Sets if the agent or the caller terminated the call.
 void setTalkTime(java.lang.Long talkTime)
          Sets the amount of time the caller talked to the agent.
 
Methods inherited from class net.sf.asterisk.manager.event.AbstractAgentEvent
getChannel, getMember, getQueue, getUniqueId, setChannel, setMember, setQueue, setUniqueId
 
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

AgentCompleteEvent

public AgentCompleteEvent(java.lang.Object source)
Method Detail

getHoldTime

public java.lang.Long getHoldTime()
Returns the amount of time the caller was on hold.

Returns:
the amount of time the caller was on hold in seconds.

setHoldTime

public void setHoldTime(java.lang.Long holdtime)
Sets the amount of time the caller was on hold.

Parameters:
holdtime - the amount of time the caller was on hold in seconds.

getTalkTime

public java.lang.Long getTalkTime()
Returns the amount of time the caller talked to the agent.

Returns:
the amount of time the caller talked to the agent in seconds.

setTalkTime

public void setTalkTime(java.lang.Long talkTime)
Sets the amount of time the caller talked to the agent.

Parameters:
talkTime - the amount of time the caller talked to the agent in seconds.

getReason

public java.lang.String getReason()
Returns if the agent or the caller terminated the call.

Returns:
"agent" if the agent terminated the call, "caller" if the caller terminated the call.

setReason

public void setReason(java.lang.String reason)
Sets if the agent or the caller terminated the call.

Parameters:
reason - "agent" if the agent terminated the call, "caller" if the caller terminated the call.


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