KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > oddjob > Resetable


1 package org.oddjob;
2
3 /**
4  * A class that implements this interface is able to respond
5  * to two types of reset message. A soft reset, which is typically
6  * used to reset a job after an exception, or a hard reset which is
7  * typically used to reset a job to begin again.
8  *
9  * @author Rob Gordon
10  */

11
12 public interface Resetable {
13     
14     /**
15      * Perform a soft reset.
16      */

17     public void softReset();
18     
19     /**
20      * Perform a hard reset.
21      */

22     public void hardReset();
23 }
24
Popular Tags