Package org.apache.qpid.protonj2.client
Class ConnectionEvent
java.lang.Object
org.apache.qpid.protonj2.client.ConnectionEvent
An event object that accompanies events fired to handlers configured in the
 
ConnectionOptions which are signaled during specific Connection
 event points.- 
Constructor SummaryConstructorsConstructorDescriptionConnectionEvent(String host, int port) Creates the event object with all immutable data provided.
- 
Method SummaryModifier and TypeMethodDescriptionhost()Gets the host that is associated with this event which for a successfulConnectionevent would be the currently active host and for an interrupted or failed Connection this host would indicate the host where theConnectionhad previously been established.intport()Gets the port that is associated with this event which for a successfulConnectionevent would be the currently active port and for an interrupted or failed Connection this port would indicate the host where theConnectionhad previously been established.
- 
Constructor Details- 
ConnectionEventCreates the event object with all immutable data provided.- Parameters:
- host- the host that is associated with this- ConnectionEvent
- port- the port that is associated with this- ConnectionEvent
 
 
- 
- 
Method Details- 
hostGets the host that is associated with this event which for a successfulConnectionevent would be the currently active host and for an interrupted or failed Connection this host would indicate the host where theConnectionhad previously been established.- Returns:
- the host that is associated with this ConnectionEvent
 
- 
portpublic int port()Gets the port that is associated with this event which for a successfulConnectionevent would be the currently active port and for an interrupted or failed Connection this port would indicate the host where theConnectionhad previously been established.- Returns:
- the port that is associated with this ConnectionEvent
 
 
-