View Javadoc

1   /*
2    * Copyright  2004-2005 Stefan Reuter
3    *
4    *  Licensed under the Apache License, Version 2.0 (the "License");
5    *  you may not use this file except in compliance with the License.
6    *  You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   *  Unless required by applicable law or agreed to in writing, software
11   *  distributed under the License is distributed on an "AS IS" BASIS,
12   *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   *  See the License for the specific language governing permissions and
14   *  limitations under the License.
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  }