java.lang.Object | *- java.util.EventObject | *- com.ibm.mq.MQPoolServicesEvent |
An MQPoolServicesEvent is generated whenever an MQPoolToken is added to, or removed from, the set of tokens that MQEnvironment controls. An event is also generated when the default ConnectionManager is changed.
See also MQPoolServices and MQPoolServicesEventListener.
The event ID used when the default ConnectionManager changes.
The event ID. Valid values are:
TOKEN_ADDED
TOKEN_REMOVED
DEFAULT_POOL_CHANGED
The event ID used when an MQPoolToken is added to the set.
The event ID used when an MQPoolToken is removed from the set.
The token. When the event ID is DEFAULT_POOL_CHANGED, this is null.
public MQPoolServicesEvent(Object source, int eid)
Constructs an MQPoolServicesEvent based on the event ID.
public MQPoolServicesEvent(Object source, int eid, MQPoolToken token)
Constructs an MQPoolServicesEvent based on the event ID and the token.
Gets the event ID.
Returns
The event ID, with one of the following values:
DEFAULT_POOL_CHANGED
TOKEN_ADDED
TOKEN_REMOVED
Returns the token that was added to, or removed from, the set. If the event ID is DEFAULT_POOL_CHANGED, this is null.