com.ibm.websphere.asynchbeans
Interface AlarmListener
- public interface AlarmListener
See Also:
Method Summary
Modifier and Type | Method and Description |
---|---|
|
fired(Alarm alarm)
This method is called when an alarm fires.
|
Method Detail
fired
- void fired(Alarm alarm)
This method is called when an alarm fires. If the alarm is a one shot
event or is the last alarm in a periodic alarm then the alarm should
be cancelled. Cancelling the alarm allows it to be reused thus
saving memory and increasing performance. If the alarm is a repeating
alarm then the Alarm.reset method should be called to schedule the
alarm to fire again later. This again improves performance through
memory optimizations.
Parameters:
alarm
- This is the alarm that actually fired. The context of the
alarm can be retrieved using the Alarm.getContext method.