Cleanup from within a program
We can use a programming interface to the cleanup routines for use with SUBSTORE(BROKER), through the class com.ibm.mq.jms.Cleanup. Instances of this class have getter/setter methods for each of the connection properties; and also for the cleanup level and interval.
It exposes two methods:
- cleanup()
- Executes cleanup once
- run()
- Runs cleanup at intervals determined by the properties of the cleanup object
This class allows complete customization of publish/subscribe Cleanup, but it is intended for use by system administration programs rather than application programs.
For more details, refer to Cleanup.
uj24930_