1 /* 2 * Copyright (c) 1999-2001 Lutris Technologies, Inc. All Rights 3 * Reserved. 4 * 5 * This source code file is distributed by Lutris Technologies, Inc. for 6 * use only by licensed users of product(s) that include this source 7 * file. Use of this source file or the software that uses it is covered 8 * by the terms and conditions of the Lutris Enhydra Development License 9 * Agreement included with this product. 10 * 11 * This Software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF 12 * ANY KIND, either express or implied. See the License for the specific terms 13 * governing rights and limitations under the License. 14 * 15 * Contributor(s): 16 * 17 * $Id: Update.java,v 1.1 2004/08/16 09:33:18 slobodan Exp $ 18 */ 19 20 package com.lutris.airsent.spec.delivery; 21 22 import com.lutris.airsent.spec.AirSentException; 23 /** 24 * Interface declaration 25 * 26 * 27 * @author joseph shoop 28 * @version %I%, %G% 29 */ 30 public interface Update { 31 32 /** 33 * Provides the time for an update. 34 * 35 * 36 * @param browserState 37 * @param wait 38 * 39 * @return 40 * 41 * 42 */ 43 public long needUpdate(long browserState, long wait) throws AirSentException ; 44 45 /** 46 * Set the update state. 47 * 48 * 49 * @param updateState 50 * 51 * 52 */ 53 public void setUpdateState(long updateState); 54 55 /** 56 * Gets the update state. 57 * 58 * 59 * @return 60 * 61 * 62 */ 63 public long getUpdateState(); 64 } 65 66