Class ConnectionEvent


  • public class ConnectionEvent
    extends java.lang.Object
    An event object that accompanies events fired to handlers configured in the ConnectionOptions which are signaled during specific Connection event points.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConnectionEvent​(java.lang.String host, int port)
      Creates the event object with all immutable data provided.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String host()
      Gets the host that is associated with this event which for a successful Connection event would be the currently active host and for an interrupted or failed Connection this host would indicate the host where the Connection had previously been established.
      int port()
      Gets the port that is associated with this event which for a successful Connection event would be the currently active port and for an interrupted or failed Connection this port would indicate the host where the Connection had previously been established.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConnectionEvent

        public ConnectionEvent​(java.lang.String host,
                               int port)
        Creates 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 Detail

      • host

        public java.lang.String host()
        Gets the host that is associated with this event which for a successful Connection event would be the currently active host and for an interrupted or failed Connection this host would indicate the host where the Connection had previously been established.
        Returns:
        the host that is associated with this ConnectionEvent
      • port

        public int port()
        Gets the port that is associated with this event which for a successful Connection event would be the currently active port and for an interrupted or failed Connection this port would indicate the host where the Connection had previously been established.
        Returns:
        the port that is associated with this ConnectionEvent