Class ClientProviders

java.lang.Object
com.alibaba.dashscope.legacy_2x.protocol.ClientProviders

@Deprecated public class ClientProviders extends Object
Deprecated.
  • Constructor Details

    • ClientProviders

      public ClientProviders()
      Deprecated.
  • Method Details

    • getHalfDuplexClient

      public static HalfDuplexClient getHalfDuplexClient(String protocol)
      Deprecated.
    • getFullDuplexClient

      public static FullDuplexClient getFullDuplexClient()
      Deprecated.
    • getHalfDuplexClient

      public static HalfDuplexClient getHalfDuplexClient(ConnectionOptions options, String protocol)
      Deprecated.
      Create a dashscope half duplex client. only okhttp http and websocket is supported.
      Parameters:
      options - The client connection options.
      protocol - The protocol to use, one of "http|https|websocket"
      Returns:
      The half duplex client.
    • getFullDuplexClient

      public static FullDuplexClient getFullDuplexClient(ConnectionOptions connectionOptions, boolean passTaskStarted)
      Deprecated.
      Create a dashscope full duplex client. only websocket is supported.
      Parameters:
      connectionOptions - The client options.
      Returns:
      The full duplex client.