public class QueuePenaltyAction extends AbstractManagerAction
It is implemented in apps/app_queue.c
Available since Asterisk 1.6.
| Constructor and Description |
|---|
QueuePenaltyAction()
Creates a new empty QueuePenaltyAction.
|
QueuePenaltyAction(String iface,
int penalty)
Creates a new QueuePenaltyAction that sets the penalty for the given
interface on all queues.
|
QueuePenaltyAction(String iface,
int penalty,
String queue)
Creates a new QueuePenaltyAction that sets the penalty for the given
interface on the given queue.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAction()
Returns the name of this action, i.e.
|
String |
getInterface()
Returns the interface of the member to set the penalty for.
|
Integer |
getPenalty()
Returns the new penalty.
|
String |
getQueue()
Returns the name of the queue.
|
void |
setInterface(String iface)
Sets the interface of the member to set the penalty for.
|
void |
setPenalty(Integer penalty)
Sets the new penalty.
|
void |
setQueue(String queue)
Sets the name of the queue.
|
getActionId, setActionId, toStringpublic QueuePenaltyAction()
public QueuePenaltyAction(String iface, int penalty)
iface - the interface of the member to set the penalty forpenalty - new penalty value.public QueuePenaltyAction(String iface, int penalty, String queue)
iface - the interface of the member to set the penalty forpenalty - new penalty value.queue - the queue the member is assigned the penalty forpublic String getAction()
getAction in interface ManagerActiongetAction in class AbstractManagerActionpublic String getInterface()
public void setInterface(String iface)
This property is mandatory.
iface - the interface of the member to to set the penalty for.public Integer getPenalty()
public void setPenalty(Integer penalty)
This property is mandatory.
penalty - the new penalty.public String getQueue()
public void setQueue(String queue)
queue - the name of the queue or null for all queues.Copyright © 2004–2020. All rights reserved.