Asterisk-Java

org.asteriskjava.manager.event
Class QueueMemberPenaltyEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.asteriskjava.manager.event.ManagerEvent
          extended by org.asteriskjava.manager.event.QueueMemberPenaltyEvent
All Implemented Interfaces:
java.io.Serializable

public class QueueMemberPenaltyEvent
extends ManagerEvent

A QueueMemberPenaltyEvent is triggered when a queue member is assigned a new penalty.

It is implemented in apps/app_queue.c.

Available since Asterisk 1.6

Since:
1.0.0
Version:
$Id: QueueMemberPenaltyEvent.java 965 2008-02-03 06:47:03Z srt $
Author:
srt
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
QueueMemberPenaltyEvent(java.lang.Object source)
          Creates a new instance.
 
Method Summary
 java.lang.String getLocation()
          Returns the name of the member's interface.
 java.lang.Integer getPenalty()
          Returns the new penalty.
 java.lang.String getQueue()
          Returns the name of the queue.
 void setLocation(java.lang.String member)
          Sets the name of the member's interface.
 void setPenalty(java.lang.Integer penalty)
          Sets the new penalty.
 void setQueue(java.lang.String queue)
          Sets the name of 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

QueueMemberPenaltyEvent

public QueueMemberPenaltyEvent(java.lang.Object source)
Creates a new instance.

Parameters:
source -
Method Detail

getQueue

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

Returns:
the name of the queue.

setQueue

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

Parameters:
queue - the name of the queue.

getLocation

public java.lang.String getLocation()
Returns the name of the member's interface.

E.g. the channel name or agent group.

Returns:
the name of the member's interface.

setLocation

public void setLocation(java.lang.String member)
Sets the name of the member's interface.

Parameters:
member - the name of the member's interface.

getPenalty

public java.lang.Integer getPenalty()
Returns the new penalty.

Returns:
the new penalty.

setPenalty

public void setPenalty(java.lang.Integer penalty)
Sets the new penalty.

Parameters:
penalty - the new penalty.

Asterisk-Java

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