KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > jdo > spi > persistence > support > sqlstore > utility > TickEventListener


1 /*
2  * The contents of this file are subject to the terms
3  * of the Common Development and Distribution License
4  * (the License). You may not use this file except in
5  * compliance with the License.
6  *
7  * You can obtain a copy of the license at
8  * https://glassfish.dev.java.net/public/CDDLv1.0.html or
9  * glassfish/bootstrap/legal/CDDLv1.0.txt.
10  * See the License for the specific language governing
11  * permissions and limitations under the License.
12  *
13  * When distributing Covered Code, include this CDDL
14  * Header Notice in each file and include the License file
15  * at glassfish/bootstrap/legal/CDDLv1.0.txt.
16  * If applicable, add the following below the CDDL Header,
17  * with the fields enclosed by brackets [] replaced by
18  * you own identifying information:
19  * "Portions Copyrighted [year] [name of copyright owner]"
20  *
21  * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
22  */

23
24 /*
25  * TickEventListener.java
26  *
27  * Create on March 4, 2000
28  */

29
30 package com.sun.jdo.spi.persistence.support.sqlstore.utility;
31 import java.util.EventListener JavaDoc;
32
33 /**
34  * This interface defines an event listener that responds to
35  * ticks sent from
36  * a <code>Timer</code> object when its interval expires.
37  * An object that uses a timer must implement this interface,
38  * which enables the object to respond to tick events
39  * (<code>TickEvent</code> objects) from a <code>Timer</code> object.
40  * <P>For information about using events, see the <I>SynerJ
41  * Programming Guide.</I>
42  * @see com.forte.util.Timer
43  * @see com.forte.util.TickEvent
44  */

45 public interface TickEventListener extends EventListener JavaDoc
46 {
47     /**
48      * Detects each timer tick, and performs an action
49      * appropriate to the object using the timer.
50      * This method must be implemented in the object that uses the timer.
51      */

52     public abstract void tick(TickEvent evt);
53 }
54
Popular Tags