MQPoolServicesEvent
java.lang.Object | *- java.util.EventObject | *- com.ibm.mq.MQPoolServicesEvent
- Note:
- Normally, applications do not use this class.
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.
Variables
- DEFAULT_POOL_CHANGED
- public static final int DEFAULT_POOL_CHANGED
The event ID used when the default ConnectionManager changes.
- ID
- protected int ID
The event ID. Valid values are:
TOKEN_ADDED
TOKEN_REMOVED
DEFAULT_POOL_CHANGED
- TOKEN_ADDED
- public static final int TOKEN_ADDED
The event ID used when an MQPoolToken is added to the set.
- TOKEN_REMOVED
- public static final int TOKEN_REMOVED
The event ID used when an MQPoolToken is removed from the set.
- token
- protected MQPoolToken token
The token. When the event ID is DEFAULT_POOL_CHANGED, this is null.
Constructors
- MQPoolServicesEvent
public MQPoolServicesEvent(Object source, int eid)Constructs an MQPoolServicesEvent based on the event ID.
- MQPoolServicesEvent
public MQPoolServicesEvent(Object source, int eid, MQPoolToken token)Constructs an MQPoolServicesEvent based on the event ID and the token.
Methods
- getId
- public int getId()
Gets the event ID.
Returns
The event ID, with one of the following values:
DEFAULT_POOL_CHANGED
TOKEN_ADDED
TOKEN_REMOVED
- getToken
- public MQPoolToken getToken()
Returns the token that was added to, or removed from, the set. If the event ID is DEFAULT_POOL_CHANGED, this is null.