EventScheduler.java Sample

This topic inludes the source code for the EventScheduler.java Sample.

Sample Location

This sample is located in the following directory in your WebLogic Workshop installation:

BEA_HOME/weblogic81/samples/workshop/ExtensionDevKit/ControlDevKit/ControlFeatures/controlEvents/

Sample Source Code


01 package controlEvents; 
02 
03 import com.bea.control.*;
04 
05 public interface EventScheduler extends Control
06 
07     public void setAlarm(long delayInMsecs);
08     public void cancelAlarm();
09        /*
10      * The onAlarmRinging callback notifies clients when the interval they
11      * specified has passed.
12      */
13     public interface Callback 
14     {
15         void onAlarmRinging(String message, long time);
16     }
17   
18