Class ConnectionClosingEvent
java.lang.Object
java.util.EventObject
com.sun.messaging.jms.notification.Event
com.sun.messaging.jms.notification.ConnectionEvent
com.sun.messaging.jms.notification.ConnectionClosingEvent
- All Implemented Interfaces:
- Serializable
MQ Connection closing Event. This event is generated (if application had set a connection event listener) when MQ
 client runtime received a notification from MQ broker that a connection is about to be closed due to a soft shutdown.
- See Also:
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final StringConnection closing event code - admin requested shutdown.Fields inherited from class com.sun.messaging.jms.notification.ConnectionEventconnectionFields inherited from class java.util.EventObjectsource
- 
Constructor SummaryConstructorsConstructorDescriptionConnectionClosingEvent(Connection conn, String evCode, String evMessage, long timePeriod) Construct a ConnectionClosingEvent object associated with the connection specified.
- 
Method SummaryModifier and TypeMethodDescriptionlongGet the connection closing time period in milli seconds.Methods inherited from class com.sun.messaging.jms.notification.ConnectionEventgetBrokerAddress, getConnection, getSourceMethods inherited from class com.sun.messaging.jms.notification.EventgetEventCode, getEventMessage, toString
- 
Field Details- 
CONNECTION_CLOSING_ADMINConnection closing event code - admin requested shutdown.- See Also:
 
 
- 
- 
Constructor Details- 
ConnectionClosingEventConstruct a ConnectionClosingEvent object associated with the connection specified.- Parameters:
- 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.
 
 
- 
- 
Method Details- 
getClosingTimePeriodpublic long getClosingTimePeriod()Get the connection closing time period in milli seconds. The time period is calculated from the announcement time by broker.- Returns:
- the closing time period.
 
 
-