java.lang.Object | *- com.ibm.mq.MQPoolServices |
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.
public MQPoolServices()
Construct a new MQPoolServices object.
public void addMQPoolServicesEventListener (MQPoolServicesEventListener listener)
Add 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.
public int getTokenCount()
Returns the number of MQPoolTokens that are currently registered with MQEnvironment.
public void removeMQPoolServicesEventListener (MQPoolServicesEventListener listener)
Remove an MQPoolServicesEventListener.