public class ConnectionEvent extends Event
The following are a list of connection notification types that defined in MQ hawk release:
1. Connection closing in "time period":
2. Connection closed because of:
3. Reconnected:
4. Reconnect Failed:
| Modifier and Type | Field and Description |
|---|---|
protected Connection |
connection
The connection object that associated with this event.
|
| Constructor and Description |
|---|
ConnectionEvent(Connection conn,
java.lang.String evCode,
java.lang.String evMessage)
Construct a MQ connection event.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getBrokerAddress()
Get the broker's address that the event is associated with.
|
Connection |
getConnection()
Get the current connection associated with this event.
|
java.lang.Object |
getSource()
Return com.sun.messaging.jms.Connection object.
|
getEventCode, getEventMessage, toStringprotected transient Connection connection
public ConnectionEvent(Connection conn, java.lang.String evCode, java.lang.String evMessage)
conn - the connection associated with this event object.evCode - the event code that represents the this event object.evMessage - the event message that describes this event object.public Connection getConnection()
public java.lang.String getBrokerAddress()
public java.lang.Object getSource()
getSource in class java.util.EventObjectCopyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.