Class EndpointDetails

    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected EndpointDetails​(java.net.SocketAddress remoteAddress, java.net.SocketAddress localAddress, Timeout socketTimeout)  
    • Field Detail

      • remoteAddress

        private final java.net.SocketAddress remoteAddress
      • localAddress

        private final java.net.SocketAddress localAddress
      • socketTimeout

        private final Timeout socketTimeout
    • Constructor Detail

      • EndpointDetails

        protected EndpointDetails​(java.net.SocketAddress remoteAddress,
                                  java.net.SocketAddress localAddress,
                                  Timeout socketTimeout)
    • Method Detail

      • getRemoteAddress

        public java.net.SocketAddress getRemoteAddress()
      • getLocalAddress

        public java.net.SocketAddress getLocalAddress()
      • getRequestCount

        public abstract long getRequestCount()
        Gets the number of requests transferred over the connection, 0 if not available.
        Specified by:
        getRequestCount in interface HttpConnectionMetrics
      • getResponseCount

        public abstract long getResponseCount()
        Gets the number of responses transferred over the connection, 0 if not available.
        Specified by:
        getResponseCount in interface HttpConnectionMetrics
      • getSentBytesCount

        public abstract long getSentBytesCount()
        Gets the number of bytes transferred over the connection, 0 if not available.
        Specified by:
        getSentBytesCount in interface HttpConnectionMetrics
      • getReceivedBytesCount

        public abstract long getReceivedBytesCount()
        Gets the number of bytes transferred over the connection, 0 if not available.
        Specified by:
        getReceivedBytesCount in interface HttpConnectionMetrics
      • getSocketTimeout

        public Timeout getSocketTimeout()
        Gets the socket timeout.
        Returns:
        the socket timeout.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object