1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package net.sf.asterisk.manager.event;
18
19 /***
20 * A QueueMemberPausedEvent is triggered when a queue member is paused or
21 * unpaused.<br>
22 * It is implemented in <code>apps/app_queue.c</code>.<br>
23 * Available since Asterisk 1.2
24 *
25 * @author srt
26 * @version $Id: QueueMemberPausedEvent.java,v 1.1 2005/08/28 09:45:18 srt Exp $
27 * @since 0.2
28 */
29 public class QueueMemberPausedEvent extends AbstractQueueMemberEvent
30 {
31 /***
32 * Serial version identifier.
33 */
34 private static final long serialVersionUID = 2108033737226142194L;
35
36 private Boolean paused;
37
38 public QueueMemberPausedEvent(Object source)
39 {
40 super(source);
41 }
42
43 /***
44 * Returns if this queue member is paused (not accepting calls).<br>
45 *
46 * @return <code>Boolean.TRUE</code> if this member has been paused or
47 * <code>Boolean.FALSE</code> if not.
48 */
49 public Boolean getPaused()
50 {
51 return paused;
52 }
53
54 /***
55 * Sets if this member is paused.
56 *
57 * @param paused <code>Boolean.TRUE</code> if this member has been paused
58 * or <code>Boolean.FALSE</code> if not.
59 */
60 public void setPaused(Boolean paused)
61 {
62 this.paused = paused;
63 }
64 }