|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlarmManager
This manages a set of logical alarms. If we destroy it then all the logical alarms created using this alarm manager are cancelled. It is always associated with a WorkManager. The WorkManager dictates the configuration of the AlarmManager as well as which J2EE contexts from Alarm creators are used when an alarm is fired.
This can generate events. The events which can be generated are documented in the AlarmManagerEvents interface. Implement the Events interface and add an instance of this object using the AlarmManager.addListener method.
These Alarms are always executed in the same JVM as the thread that created the Alarm. The Alarms are transient and if the server fails then they are lost irrecoverably. The Scheduler should be used if a cluster wide event needs to be scheduled and needs to be guaranteed to run once in the cluster.
AsynchScope
,
Alarm
,
AlarmManagerEvents
,
Scheduler
Field Summary |
---|
Fields inherited from interface com.ibm.websphere.asynchbeans.EventSource |
---|
APPLICATION_NOTIFICATION_EVENT_SOURCE, MAX_LISTENER_SEQUENCE_VALUE, MIN_LISTENER_SEQUENCE_VALUE |
Method Summary | |
---|---|
Alarm |
create(AlarmListener l,
java.lang.Object context,
int milliSeconds)
Creates a new Alarm. |
Methods inherited from interface com.ibm.websphere.asynchbeans.EventSource |
---|
addListener, addListener, getEventTrigger, getEventTrigger, removeListener |
Method Detail |
---|
Alarm create(AlarmListener l, java.lang.Object context, int milliSeconds) throws java.lang.IllegalArgumentException
l
- The target for the Alarm. The fired method on this is called
when the alarm is fired.context
- The context object for the alarm. This is useful
for supplying alarm specific data to the listener and allows one
listener to be created and used for multiple alarms.milliSeconds
- The alarm will fire in this many milliseconds.
java.lang.IllegalArgumentException
- This can be thrown if the async bean is an EnterpriseBean.
|
IBM WebSphere Application ServerTM Release 7 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |