public class ConnectionClosedEvent extends ConnectionEvent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONNECTION_CLOSED_BROKER_DOWN
Connection closed event code - broker crash.
|
static java.lang.String |
CONNECTION_CLOSED_ERROR
Connection closed event code - server error, e.g.
|
static java.lang.String |
CONNECTION_CLOSED_KILL
Connection closed event code - admin killed connection.
|
static java.lang.String |
CONNECTION_CLOSED_LOST_CONNECTION
The above event codes are for events originated from the broker.
|
static java.lang.String |
CONNECTION_CLOSED_NON_RESPONSIVE
Connection closed event code - broker is not responsive.
|
static java.lang.String |
CONNECTION_CLOSED_RESTART
Connection closed event code - admin requested restart
|
static java.lang.String |
CONNECTION_CLOSED_SHUTDOWN
Connection closed event code - admin requested shutdown
|
connection| Constructor and Description |
|---|
ConnectionClosedEvent(Connection conn,
java.lang.String evCode,
java.lang.String evMessage,
javax.jms.JMSException jmse)
Construct a connection closed event.
|
| Modifier and Type | Method and Description |
|---|---|
javax.jms.JMSException |
getJMSException()
Get the JMSException that caused the connection to be closed.
|
getBrokerAddress, getConnection, getSourcegetEventCode, getEventMessage, toStringpublic static final java.lang.String CONNECTION_CLOSED_SHUTDOWN
public static final java.lang.String CONNECTION_CLOSED_RESTART
public static final java.lang.String CONNECTION_CLOSED_ERROR
public static final java.lang.String CONNECTION_CLOSED_KILL
public static final java.lang.String CONNECTION_CLOSED_BROKER_DOWN
public static final java.lang.String CONNECTION_CLOSED_NON_RESPONSIVE
public static final java.lang.String CONNECTION_CLOSED_LOST_CONNECTION
public ConnectionClosedEvent(Connection conn, java.lang.String evCode, java.lang.String evMessage, javax.jms.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.public javax.jms.JMSException getJMSException()
Copyright (c) 2010, 2017 Oracle and/or its affiliates. All rights reserved.