|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AsynchScope
An asynch bean is a scoping mechanism. It 'own's it's own AlarmManager and SubSystemMonitorManager. If the asynch bean is destroyed then any alarms/subsystem monitors managed by its alarm manager and subsystem monitor manager are also destroyed. Properties can be stored in an AsynchBean also giving J2EE applications a way to store non serializable state that otherwise could not be stored in a session bean (Alarms,WorkItems,application data).
AsynchScopes can also be configured to automatically deregister a set of NotificationListeners when they are destroyed. If the Notification methods are used to register and unregister the listeners then this can ease the burden of ensuring that listeners are unregistered when required.
Asynch Beans can also have children which are also asynch beans. These can be useful for scoping data underneath the parent. If the parent is destroyed then the children are destroyed also. Asynch Beans are named. All beans at the same 'level' of the tree must be uniquely named. Ultimately, a WorkManager owns all asynch beans.
WorkManager
,
SubsystemMonitorManager
,
AlarmManager
,
AsynchScopeEvents
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 | |
---|---|
void |
destroy()
This destroys the bean. |
AlarmManager |
getAlarmManager()
This returns the alarm manager owned by this bean. |
java.lang.String |
getName()
This returns the name of the asynch bean. |
AsynchScopeManager |
getParent()
This returns the parent of the bean. |
java.util.Map |
getPropertyMap()
This returns a set of properties that can be manipulated. |
SubsystemMonitorManager |
getSubsystemMonitorManager()
This returns the subsystem monitor manager owned by this bean. |
void |
registerListener(EventSource es,
java.lang.Object listener)
This registers the listener with the EventSource. |
void |
registerListener(EventSource es,
java.lang.Object listener,
int priority)
This registers the listener with the EventSource. |
void |
unregisterListener(EventSource es,
java.lang.Object listener)
This removes the listener from the EventSource and also updates the Scope to forget this listener. |
Methods inherited from interface com.ibm.websphere.asynchbeans.AsynchScopeManager |
---|
createAsynchScope, findAsynchScope, findOrCreateAsynchScope |
Methods inherited from interface com.ibm.websphere.asynchbeans.EventSource |
---|
addListener, addListener, getEventTrigger, getEventTrigger, removeListener |
Method Detail |
---|
java.lang.String getName()
void destroy()
java.util.Map getPropertyMap()
AlarmManager getAlarmManager()
SubsystemMonitorManager getSubsystemMonitorManager()
AsynchScopeManager getParent()
void registerListener(EventSource es, java.lang.Object listener)
es
- The EventSource to call addListener on.listener
- The listener it-self.void registerListener(EventSource es, java.lang.Object listener, int priority)
es
- The EventSource to call addListener on.listener
- The listener it-self.priority
- The priority of the listener (0-9)void unregisterListener(EventSource es, java.lang.Object listener)
es
- The EventSourc to remove the listener from.listener
- The listener to remove.
|
IBM WebSphere Application ServerTM Release 8 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |