IBM WebSphere Application ServerTM
Release 7

com.ibm.websphere.asynchbeans
Interface AsynchScopeManager

All Superinterfaces:
EventSource
All Known Subinterfaces:
AsynchScope, WorkManager

public interface AsynchScopeManager
extends EventSource

This interface is used for object which manage a set of child asynch beans. WorkManager and AsynchScope extend this interface. It allows new uniquely named asynch beans to be created and existing ones retrieved. It's also an EventSource.


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
 AsynchScope createAsynchScope(java.lang.String name)
          This creates a new asynch bean with the given name.
 AsynchScope findAsynchScope(java.lang.String name)
          This returns the asynch bean with a given name or null if it doesn't exist.
 AsynchScope findOrCreateAsynchScope(java.lang.String name)
          This returns the asynch bean with a given name or creates it if it doesn't exist.
 
Methods inherited from interface com.ibm.websphere.asynchbeans.EventSource
addListener, addListener, getEventTrigger, getEventTrigger, removeListener
 

Method Detail

createAsynchScope

AsynchScope createAsynchScope(java.lang.String name)
                              throws javax.ejb.DuplicateKeyException
This creates a new asynch bean with the given name. If a bean already exists with the same name then an exception is thrown.

Parameters:
name - The unique name of the new bean.
Returns:
The new asynch bean
Throws:
javax.ejb.DuplicateKeyException - This is thrown is a bean already exists with the same name.

findAsynchScope

AsynchScope findAsynchScope(java.lang.String name)
This returns the asynch bean with a given name or null if it doesn't exist.

Parameters:
name - The name of the bean to retrieve.
Returns:
The named bean or null if it doesn't exist.

findOrCreateAsynchScope

AsynchScope findOrCreateAsynchScope(java.lang.String name)
This returns the asynch bean with a given name or creates it if it doesn't exist.

Parameters:
name - The name of the bean to retrieve/create.
Returns:
The named bean.

IBM WebSphere Application ServerTM
Release 7