public class QueueMemberAddedEvent extends AbstractQueueMemberEvent
It is implemented in apps/app_queue.c.
Available since Asterisk 1.2
source| Constructor and Description |
|---|
QueueMemberAddedEvent(Object source) |
| Modifier and Type | Method and Description |
|---|---|
Integer |
getCallsTaken()
Returns the number of calls answered by the member.
|
Long |
getLastCall()
Returns the time the last successful call answered by the added member
was hungup.
|
String |
getMembership()
Returns if the added member is a dynamic or static queue member.
|
Boolean |
getPaused()
Returns if this queue member is paused (not accepting calls).
|
Integer |
getPenalty()
Returns the penalty for the added member.
|
Integer |
getStatus()
Returns the status of this queue member.
|
void |
setCallsTaken(Integer callsTaken)
Sets the number of calls answered by the added member.
|
void |
setLastCall(Long lastCall)
Sets the time the last successful call answered by this member was
hungup.
|
void |
setMembership(String membership)
Sets if the added member is a dynamic or static queue member.
|
void |
setPaused(Boolean paused)
Sets if this member is paused.
|
void |
setPenalty(Integer penalty)
Sets the penalty for this member.
|
void |
setStatus(Integer status)
Sets the status of this queue member.
|
getLocation, getMemberName, getQueue, setLocation, setMemberName, setQueueappendPropertyIfNotNull, getDateReceived, getFile, getFunc, getLine, getPrivilege, getSequenceNumber, getServer, getTimestamp, setDateReceived, setFile, setFunc, setLine, setPrivilege, setSequenceNumber, setServer, setTimestamp, toStringgetSourcepublic QueueMemberAddedEvent(Object source)
public String getMembership()
public void setMembership(String membership)
membership - "dynamic" if the added member is a dynamic queue
member, "static" if the added member is a static queue member.public Integer getPenalty()
public void setPenalty(Integer penalty)
penalty - the penalty for this member.public Integer getCallsTaken()
public void setCallsTaken(Integer callsTaken)
callsTaken - the number of calls answered by the added member.public Long getLastCall()
public void setLastCall(Long lastCall)
lastCall - the time (in seconds since 01/01/1970) the last
successful call answered by the added member was hungup.public Integer getStatus()
Valid status codes are:
public void setStatus(Integer status)
status - the status of this queue memberpublic Boolean getPaused()
Boolean.TRUE if this member has been paused or
Boolean.FALSE if not.public void setPaused(Boolean paused)
paused - Boolean.TRUE if this member has been paused
or Boolean.FALSE if not.Copyright © 2004–2016. All rights reserved.