|
Message Queue, v4.5.1 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.EventObject
com.sun.messaging.jms.notification.Event
com.sun.messaging.jms.notification.ConnectionEvent
public class ConnectionEvent
MQ Connection Event. This is the super class for all MQ connection events. MQ may notify an application when a connection event is about to occur or occurred.
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:
Field Summary | |
---|---|
protected Connection |
connection
The connection object that associated with this event. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ConnectionEvent(Connection conn,
String evCode,
String evMessage)
Construct a MQ connection event. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.sun.messaging.jms.notification.Event |
---|
getEventCode, getEventMessage, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected transient Connection connection
Constructor Detail |
---|
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.Method Detail |
---|
public Connection getConnection()
public String getBrokerAddress()
public Object getSource()
getSource
in class EventObject
|
Message Queue, v4.5.1 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |