KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > WaitProc


1 import org.enhydra.shark.api.internal.toolagent.AppParameter;
2
3 public class WaitProc {
4    public static void execute (AppParameter param1) {
5       try {
6          long ms=((Long JavaDoc)param1.the_value).longValue();
7 System.out.println("The Wait proc will wait for "+ms+" milliseconds");
8          Thread.sleep(ms);
9 System.out.println("The Wait proc finished its waiting");
10       } catch (Exception JavaDoc ex) {
11 System.out.println("WaitProc - Problems while executing procedure");
12       }
13    }
14 }
15
Popular Tags