public interface AsteriskQueueMember extends LiveObject
PropertyChangeEvents are fired for the following properties:
Modifier and Type | Field and Description |
---|---|
static String |
PROPERTY_CALLSTAKEN |
static String |
PROPERTY_LASTCALL |
static String |
PROPERTY_PAUSED |
static String |
PROPERTY_PENALTY |
static String |
PROPERTY_STATE |
Modifier and Type | Method and Description |
---|---|
Integer |
getCallsTaken()
total calls taken
|
Long |
getLastCall()
get the timestamp when the last call was terminated
|
String |
getLocation()
Returns the location of this member.
|
String |
getMembership()
Returns if this member has been dynamically added by the QueueAdd command
(in the dialplan or via the Manager API) or if this member is has been
statically defined in
queues.conf . |
boolean |
getPaused()
Deprecated.
as of 1.0.0. Use
isPaused() instead. |
Integer |
getPenalty()
Returns the penalty of this member.
|
AsteriskQueue |
getQueue()
Returns the queue this member is registerd to.
|
QueueMemberState |
getState()
Returns the state of this member.
|
boolean |
isDynamic()
Convenience method that checks whether this member has been dynamically
added by the QueueAdd command.
|
boolean |
isPaused()
Returns whether this member is currently paused..
|
boolean |
isStatic()
Convenience method that checks whether this member has been statically
defined in
queues.conf . |
void |
setPaused(boolean paused)
Pauses or unpauses this member on this queue.
|
void |
setPausedAll(boolean paused)
Pauses or unpauses this member on all queues.
|
void |
setPenalty(int penalty)
Assignes a new penalty to this queue member.
|
addPropertyChangeListener, addPropertyChangeListener, getLastUpdateMillis, getServer, removePropertyChangeListener, removePropertyChangeListener
static final String PROPERTY_STATE
static final String PROPERTY_PENALTY
static final String PROPERTY_PAUSED
static final String PROPERTY_CALLSTAKEN
static final String PROPERTY_LASTCALL
String getLocation()
AsteriskQueue getQueue()
QueueMemberState getState()
@Deprecated boolean getPaused()
isPaused()
instead.true
is this queue member is paused, false
otherwise.boolean isPaused()
true
is this queue member is paused, false
otherwise.void setPaused(boolean paused) throws ManagerCommunicationException, NoSuchInterfaceException
paused
- true
to pause this member, false
to unpause.ManagerCommunicationException
- if the QueuePauseAction could not be send to Asterisk.NoSuchInterfaceException
- if the interface or the queue do not exist.void setPausedAll(boolean paused) throws ManagerCommunicationException, NoSuchInterfaceException
paused
- true
to pause this member, false
to unpause.ManagerCommunicationException
- if the QueuePauseAction could not be send to Asterisk.NoSuchInterfaceException
- if the interface or the queue do not exist.String getMembership()
queues.conf
.boolean isStatic()
queues.conf
.true
if this member has been statically defined in
queues.conf
, false
otherwise.boolean isDynamic()
true
if this member has been dynamically added by
the QueueAdd command, false
otherwise.Integer getPenalty()
void setPenalty(int penalty) throws IllegalArgumentException, ManagerCommunicationException, InvalidPenaltyException
Available since Asterisk 1.6.
penalty
- the new penalty value, must not be negative.IllegalArgumentException
- if the penalty is negative.ManagerCommunicationException
- if the QueuePenaltyAction could not be send to Asterisk.InvalidPenaltyException
- if Asterisk refused to set the new penalty.Long getLastCall()
Integer getCallsTaken()
Copyright © 2004–2021. All rights reserved.