com.ibm.websphere.asynchbeans

Interface AsynchScopeManager

All Superinterfaces:
EventSource
All known subinterfaces:
AsynchScope, WorkManager

  1. public interface AsynchScopeManager
  2. 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

Modifier and Type Method and Description
  1. AsynchScope
createAsynchScope(java.lang.String name)
This creates a new asynch bean with the given name.
  1. AsynchScope
findAsynchScope(java.lang.String name)
This returns the asynch bean with a given name or null if it doesn't exist.
  1. 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

  1. AsynchScope createAsynchScope(java.lang.String name)
  2. 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

  1. 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

  1. 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.