public class ConnectionReconnectFailedEvent extends ConnectionEvent
The application can also obtain the current broker's address from the API defined in the ConnectionEvent.
| Modifier and Type | Field and Description |
|---|---|
static String |
CONNECTION_RECONNECT_FAILED
Connection reconnect failed event code.
|
connectionsource| Constructor and Description |
|---|
ConnectionReconnectFailedEvent(Connection conn,
String evCode,
String evMessage,
JMSException jmse)
Construct a connection reconnect failed event associated with the
specified connection.
|
| Modifier and Type | Method and Description |
|---|---|
JMSException |
getJMSException()
Get the JMSException that caused the connection to be closed.
|
getBrokerAddress, getConnection, getSourcegetEventCode, getEventMessage, toStringpublic static final String CONNECTION_RECONNECT_FAILED
public ConnectionReconnectFailedEvent(Connection conn, String evCode, String evMessage, JMSException jmse)
conn - the connection associated with the reconnect event.
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 JMSException getJMSException()
Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.