Class RealConnection

    • Field Detail

      • successCount

        public int successCount
      • source

        public okio.BufferedSource source
      • sink

        public okio.BufferedSink sink
      • allocationLimit

        public int allocationLimit
      • noNewStreams

        public boolean noNewStreams
      • idleAtNanos

        public long idleAtNanos
    • Constructor Detail

      • RealConnection

        public RealConnection(Route route)
    • Method Detail

      • route

        public Route route()
        Description copied from interface: Connection
        Returns the route used by this connection.
      • cancel

        public void cancel()
      • socket

        public Socket socket()
        Description copied from interface: Connection
        Returns the socket that this connection is using. Returns an SSL socket if this connection is HTTPS. If this is an HTTP/2 or SPDY connection the socket may be shared by multiple concurrent calls.
      • isHealthy

        public boolean isHealthy(boolean doExtensiveChecks)
        Returns true if this connection is ready to host new streams.
      • onSettings

        public void onSettings(FramedConnection connection)
        When settings are received, adjust the allocation limit.
      • handshake

        public Handshake handshake()
        Description copied from interface: Connection
        Returns the TLS handshake used to establish this connection, or null if the connection is not HTTPS.
      • isMultiplexed

        public boolean isMultiplexed()
        Returns true if this is a SPDY connection. Such connections can be used in multiple HTTP requests simultaneously.
      • toString

        public String toString()