com.sun.messaging.jms.notification
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.
|
source
Constructor and Description |
---|
ConnectionEvent(Connection conn,
String evCode,
String evMessage)
Construct a MQ connection event.
|
Modifier and Type | Method and Description |
---|---|
String |
getBrokerAddress()
Get the broker's address that the event is associated with.
|
Connection |
getConnection()
Get the current connection associated with this event.
|
Object |
getSource()
Return com.sun.messaging.jms.Connection object.
|
getEventCode, getEventMessage, toString
protected transient Connection connection
public ConnectionEvent(Connection conn, String evCode, 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 String getBrokerAddress()
public Object getSource()
getSource
in class EventObject
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.