java.lang.Object | +----com.ibm.mq.jms.MQConnectionFactory | +----com.ibm.mq.jms.Cleanup
Cleanup contains utilities for dealing with nondurable subscriptions which are broken, by using the SUBSTATE(BROKER) option. The class is not applicable if you use a direct connection to a broker.
public Cleanup();
Default constructor.
public Cleanup(MQConnectionFactory mqcf) throws JMSException;
Constructor that imports property values.
public void cleanup() throws JMSException;
Runs Cleanup once.
public long getCleanupInterval();
Gets the cleanup interval.
public int getCleanupLevel();
Gets the cleanup level.
public ExceptionListener getExceptionListener();
Gets the ExceptionListener.
public boolean isRunning();
Indicates whether run() is currently active.
public static void main(String[] args) throws UnsupportedEncodingException;
Invokes the utility directly from a command line. You can use this if you use the broker-based subscription store. Syntax for bindings attach:
Cleanup [-m ] [-r ] [SAFE | STRONG | FORCE | NONDUR] [-t] Syntax for client attach:
Cleanup -client [-m ] -host [-port ] [-channel ] [-r ] [SAFE | STRONG | FORCE | NONDUR] [-t]
public void run();
Runs Cleanup. It runs in the background at intervals, as determined by setCleanupLevel() and setCleanupInterval(). If the field set by setCleanupInterval() is zero, Cleanup runs once and returns. Otherwise Cleanup runs regularly at the time in milliseconds set by setCleanupInterval(). CleanupInterval must be zero with JMSC.MQJMS_CLEANUP_FORCE or JMSC.MQJMS_CLEANUP_NONDUR set, and CleanupLevel cannot be MQJMS_CLEANUP_NONE. In these cases the method fails with an IllegalStateException. Any exceptions generated are routed to the ExceptionListener.
public void setCleanupInterval(long interval) throws JMSException;
Sets the cleanup interval.
public void setCleanupLevel(int level) throws JMSException;
Sets the cleanup level.
public void setExceptionListener(ExceptionListener el);
Sets the ExceptionListener. If set, the ExceptionListener receives any exceptions caused while run() is running. Cleanup terminates shortly after issuing the exception to the ExceptionListener.
public void setPassword(String newPassword);
Sets the durable connection password
public void setUserID(String newuserID);
Sets the durable connection user ID.
public void stop();
Stops any running cleanup thread. Returns when run() has finished. Does nothing if run() is not running.
Notices |
Downloads |
Library |
Support |
Feedback
![]() ![]() |
jms77clu |