public class ConnectionClosingEvent extends ConnectionEvent
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONNECTION_CLOSING_ADMIN
Connection closing event code - admin requested shutdown.
|
connection
Constructor and Description |
---|
ConnectionClosingEvent(Connection conn,
java.lang.String evCode,
java.lang.String evMessage,
long timePeriod)
Construct a ConnectionClosingEvent object associated with the
connection specified.
|
Modifier and Type | Method and Description |
---|---|
long |
getClosingTimePeriod()
Get the connection closing time period in milli seconds.
|
getBrokerAddress, getConnection, getSource
getEventCode, getEventMessage, toString
public static final java.lang.String CONNECTION_CLOSING_ADMIN
public ConnectionClosingEvent(Connection conn, java.lang.String evCode, java.lang.String evMessage, long timePeriod)
conn
- the connection associated with the closing event.evCode
- the event code that represents this event object.evMessage
- the event message that describes this event object.timePeriod
- the closing time period (in milli secs) since the
broker announces the connection is to be closed.Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.