Changing the synchronization mode

An event source can change the synchronization mode being used by an emitter.

Why and when to perform this task

This change remains in effect for subsequent event submissions, but it does not change the preferred synchronization mode defined in the emitter factory profile.

The synchronization modes supported by an emitter are defined by the emitter factory profile. You can find out which modes are supported by a particular emitter by calling the isSynchronizationModeSupported() method; see the Javadoc API documentation for com.ibm.events.emitter.Emitter for more information. If you attempt to use a mode that is not supported, the emitter throws a SynchronizationModeNotSupportedException exception.

Steps for this task

To change the synchronization mode, use the setSynchronizationMode(int) method.
emitter.setSynchronizationMode(synchronizationMode);
The synchronizationMode is an integer constant defined by the interface SynchronizationMode:

Terms of use |

Last updated: Tue Feb 21 17:19:16 2006

(c) Copyright IBM Corporation 2005.
This information center is powered by Eclipse technology (http://www.eclipse.org)