Cleanup from within a program

 

We can use a programming interface to invoke the cleanup utility that is used with a broker based subscription store. Instances of the class com.ibm.mq.jms.Cleanup have getter and setter methods for each of the properties that are used to connect to a queue manager, and also for the cleanup level and cleanup interval. It exposes two additional methods:

cleanup()

Executes the cleanup utility once only.

run()

Runs cleanup at intervals determined by cleanup interval property.

This class allows complete customization of the publish/subscribe cleanup utility, but it is intended for use by system administration programs rather than application programs.

For more details, see Cleanup.


uj25240_