1 /** 2 * $Revision$ 3 * $Date$ 4 * 5 * Copyright 2003-2007 Jive Software. 6 * 7 * All rights reserved. Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20 package org.jivesoftware.smackx.workgroup.agent; 21 22 import java.util.Date; 23 import java.util.Set; 24 25 import org.jivesoftware.smackx.workgroup.QueueUser; 26 27 public interface QueueUsersListener { 28 29 /** 30 * The status of the queue was updated. 31 * 32 * @param queue the workgroup queue. 33 * @param status the status of queue. 34 */ 35 public void statusUpdated(WorkgroupQueue queue, WorkgroupQueue.Status status); 36 37 /** 38 * The average wait time of the queue was updated. 39 * 40 * @param queue the workgroup queue. 41 * @param averageWaitTime the average wait time of the queue. 42 */ 43 public void averageWaitTimeUpdated(WorkgroupQueue queue, int averageWaitTime); 44 45 /** 46 * The date of oldest entry waiting in the queue was updated. 47 * 48 * @param queue the workgroup queue. 49 * @param oldestEntry the date of the oldest entry waiting in the queue. 50 */ 51 public void oldestEntryUpdated(WorkgroupQueue queue, Date oldestEntry); 52 53 /** 54 * The list of users waiting in the queue was updated. 55 * 56 * @param queue the workgroup queue. 57 * @param users the list of users waiting in the queue. 58 */ 59 public void usersUpdated(WorkgroupQueue queue, Set<QueueUser> users); 60 }