All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.asteriskjava.manager.action.QueueSummaryAction Maven / Gradle / Ivy

There is a newer version: 3.41.0
Show newest version
package org.asteriskjava.manager.action;

import org.asteriskjava.manager.event.QueueSummaryCompleteEvent;
import org.asteriskjava.manager.event.QueueSummaryEvent;
import org.asteriskjava.manager.event.ResponseEvent;

/**
 * The QueueSummaryAction retrieves the summary for one or all queues.
 * 

* Available in Asterisk post-1.4. *

* This action has been added by * http://bugs.digium.com/view.php?id=8035. * * @see QueueSummaryEvent * @see QueueSummaryCompleteEvent * @author srt * @version $Id$ * @since 0.3 */ public class QueueSummaryAction extends AbstractManagerAction implements EventGeneratingAction { /** * Serial version identifier. */ private static final long serialVersionUID = -1635765034452468357L; private String queue; /** * Creates a new QueueSummaryAction that retrieves the summary for all * queues. */ public QueueSummaryAction() { } /** * Creates a new QueueSummaryAction that retrieves the summary for the given * queue. * * @param queue name of the queue to retrieve the summary for. */ public QueueSummaryAction(String queue) { this.queue = queue; } @Override public String getAction() { return "QueueSummary"; } public Class getActionCompleteEventClass() { return QueueSummaryCompleteEvent.class; } /** * Returns the name of the queue to retrieve the summary for. * * @return the name of the queue to retrieve the summary for or * null to retrieve the summary for all queues. */ public String getQueue() { return queue; } /** * Sets the name of the queue to retrieve the summary for. * * @param queue the name of the queue to retrieve the summary for or * null to retrieve the summary for all queues. */ public void setQueue(String queue) { this.queue = queue; } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy