MQPoolServices

 




java.lang.Object
   |
   *- com.ibm.mq.MQPoolServices
 

public class MQPoolServices
extends Object

Note:
Normally, applications do not use this class.

The MQPoolServices class can be used by implementations of ConnectionManager that are intended for use as the default ConnectionManager for WebSphere MQ connections.

A ConnectionManager can construct an MQPoolServices object and, through it, register a listener. This listener receives events that relate to the set of MQPoolTokens that MQEnvironment manages. The ConnectionManager can use this information to perform any necessary startup or cleanup work.

See also MQPoolServicesEvent and MQPoolServicesEventListener.

 

Constructors

MQPoolServices
public MQPoolServices()

Construct a new MQPoolServices object.

 

Methods

addMQPoolServicesEventListener
public void addMQPoolServicesEventListener
                              MQPoolServicesEventListener(listener)

Adds an MQPoolServicesEventListener. The listener receives an event whenever a token is added or removed from the set of MQPoolTokens that MQEnvironment controls, or whenever the default ConnectionManager changes.

getTokenCount
public int getTokenCount()

Returns the number of MQPoolTokens that are currently registered with MQEnvironment.

removeMQPoolServicesEventListener
public void removeMQPoolServicesEventListener
                                 MQPoolServicesEventListener(listener)

Removes an MQPoolServicesEventListener.

 

WebSphere is a trademark of the IBM Corporation in the United States, other countries, or both.

 

IBM is a trademark of the IBM Corporation in the United States, other countries, or both.