public class QueuePauseAction extends AbstractManagerAction
It is implemented in apps/app_queue.c
Available since Asterisk 1.2.
Constructor and Description |
---|
QueuePauseAction()
Creates a new empty QueuePauseAction.
|
QueuePauseAction(String iface)
Creates a new QueuePauseAction that makes the member on the given
interface unavailable on all queues.
|
QueuePauseAction(String iface,
Boolean paused)
Creates a new QueuePauseAction that makes the member on the given
interface available or unavailable on all queues.
|
QueuePauseAction(String iface,
String queue)
Creates a new QueuePauseAction that makes the member on the given
interface unavailable on the given queue.
|
QueuePauseAction(String iface,
String queue,
Boolean paused)
Creates a new QueuePauseAction that makes the member on the given
interface unavailable 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 make available or unavailable.
|
Boolean |
getPaused()
Returns if the member is made available or unavailable.
|
String |
getQueue()
Returns the name of the queue the member is made available or unavailable
on.
|
String |
getReason()
Sets the name of the local reason.
|
void |
setInterface(String iface)
Sets the interface of the member to make available or unavailable.
|
void |
setPaused(Boolean paused)
Sets if the member is made available or unavailable.
|
void |
setQueue(String queue)
Sets the name of the queue the member is made available or unavailable
on.
|
void |
setReason(String reason)
Returns the name of the reason.
|
getActionId, setActionId, toString
public QueuePauseAction()
public QueuePauseAction(String iface)
iface
- the interface of the member to make unavailablepublic QueuePauseAction(String iface, String queue)
iface
- the interface of the member to make unavailablequeue
- the queue the member is made unvailable onpublic QueuePauseAction(String iface, Boolean paused)
iface
- the interface of the member to make unavailablepaused
- Boolean.TRUE to make the member unavailbale, Boolean.FALSE
to make the member availablepublic QueuePauseAction(String iface, String queue, Boolean paused)
iface
- the interface of the member to make unavailablequeue
- the queue the member is made unvailable onpaused
- Boolean.TRUE to make the member unavailbale, Boolean.FALSE
to make the member availablepublic String getAction()
getAction
in interface ManagerAction
getAction
in class AbstractManagerAction
public String getInterface()
public void setInterface(String iface)
This property is mandatory.
iface
- the interface of the member to make available or
unavailable.public String getQueue()
null
for all queues.public void setQueue(String queue)
queue
- the name of the queue the member is made available or
unavailable on or null
for all queues.public Boolean getPaused()
public void setPaused(Boolean paused)
This property is mandatory.
paused
- Boolean.TRUE to make the member unavailbale, Boolean.FALSE
to make the member availablepublic String getReason()
Available since Asterisk 1.6.
public void setReason(String reason)
Available since Asterisk 1.6.
reason
- Name of the local reason for clears the flag.Copyright © 2004–2020. All rights reserved.