类 RealConnection

java.lang.Object
com.lark.oapi.okhttp.internal.http2.Http2Connection.Listener
com.lark.oapi.okhttp.internal.connection.RealConnection
所有已实现的接口:
Connection

public final class RealConnection extends Http2Connection.Listener implements Connection
  • 字段详细资料

  • 构造器详细资料

  • 方法详细资料

    • noNewExchanges

      public void noNewExchanges()
      Prevent further exchanges from being created on this connection.
    • connect

      public void connect(int connectTimeout, int readTimeout, int writeTimeout, int pingIntervalMillis, boolean connectionRetryEnabled, Call call, EventListener eventListener)
    • supportsUrl

      public boolean supportsUrl(HttpUrl url)
    • route

      public Route route()
      从接口复制的说明: Connection
      Returns the route used by this connection.
      指定者:
      route 在接口中 Connection
    • cancel

      public void cancel()
    • socket

      public Socket socket()
      从接口复制的说明: Connection
      Returns the socket that this connection is using. Returns an SSL socket if this connection is HTTPS. If this is an HTTP/2 connection the socket may be shared by multiple concurrent calls.
      指定者:
      socket 在接口中 Connection
    • isHealthy

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

      public void onStream(Http2Stream stream) throws IOException
      Refuse incoming streams.
      指定者:
      onStream 在类中 Http2Connection.Listener
      抛出:
      IOException
    • onSettings

      public void onSettings(Http2Connection connection)
      When settings are received, adjust the allocation limit.
      覆盖:
      onSettings 在类中 Http2Connection.Listener
    • handshake

      public Handshake handshake()
      从接口复制的说明: Connection
      Returns the TLS handshake used to establish this connection, or null if the connection is not HTTPS.
      指定者:
      handshake 在接口中 Connection
    • isMultiplexed

      public boolean isMultiplexed()
      Returns true if this is an HTTP/2 connection. Such connections can be used in multiple HTTP requests simultaneously.
    • protocol

      public Protocol protocol()
      从接口复制的说明: Connection
      Returns the protocol negotiated by this connection, or Protocol.HTTP_1_1 if no protocol has been negotiated. This method returns Protocol.HTTP_1_1 even if the remote peer is using Protocol.HTTP_1_0.
      指定者:
      protocol 在接口中 Connection
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object