|
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
com.sun.messaging.jms.notification.ConnectionClosedEvent
public class ConnectionClosedEvent
MQ Connection closed Event. This event is generated by MQ and delivered to an application (if the connection event listener is set) when a connection is closed by MQ.
Field Summary | |
---|---|
static String |
CONNECTION_CLOSED_BROKER_DOWN
Connection closed event code - broker crash. |
static String |
CONNECTION_CLOSED_ERROR
Connection closed event code - server error, e.g. |
static String |
CONNECTION_CLOSED_KILL
Connection closed event code - admin killed connection. |
static String |
CONNECTION_CLOSED_LOST_CONNECTION
The above event codes are for events originated from the broker. |
static String |
CONNECTION_CLOSED_NON_RESPONSIVE
Connection closed event code - broker is not responsive. |
static String |
CONNECTION_CLOSED_RESTART
Connection closed event code - admin requested restart |
static String |
CONNECTION_CLOSED_SHUTDOWN
Connection closed event code - admin requested shutdown |
Fields inherited from class com.sun.messaging.jms.notification.ConnectionEvent |
---|
connection |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
ConnectionClosedEvent(Connection conn,
String evCode,
String evMessage,
JMSException jmse)
Construct a connection closed event. |
Method Summary | |
---|---|
JMSException |
getJMSException()
Get the JMSException that caused the connection to be closed. |
Methods inherited from class com.sun.messaging.jms.notification.ConnectionEvent |
---|
getBrokerAddress, getConnection, getSource |
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 |
---|
public static final String CONNECTION_CLOSED_SHUTDOWN
public static final String CONNECTION_CLOSED_RESTART
public static final String CONNECTION_CLOSED_ERROR
public static final String CONNECTION_CLOSED_KILL
public static final String CONNECTION_CLOSED_BROKER_DOWN
public static final String CONNECTION_CLOSED_NON_RESPONSIVE
public static final String CONNECTION_CLOSED_LOST_CONNECTION
Constructor Detail |
---|
public ConnectionClosedEvent(Connection conn, String evCode, String evMessage, JMSException jmse)
conn
- the connection that the event is associated with.
MQ may automatically reconnect to the same broker
or a different broker depends on the client runtime
configuration.evCode
- the event code that represents this event object.evMessage
- the event message that describes this event object.jmse
- the JMSException that caused this event.Method Detail |
---|
public JMSException getJMSException()
|
Message Queue, v4.5.1 API Specification | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |