Class ClientProviders
java.lang.Object
com.alibaba.dashscope.legacy_2x.protocol.ClientProviders
Deprecated.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FullDuplexClientDeprecated.static FullDuplexClientgetFullDuplexClient(ConnectionOptions connectionOptions, boolean passTaskStarted) Deprecated.Create a dashscope full duplex client. only websocket is supported.static HalfDuplexClientgetHalfDuplexClient(ConnectionOptions options, String protocol) Deprecated.Create a dashscope half duplex client. only okhttp http and websocket is supported.static HalfDuplexClientgetHalfDuplexClient(String protocol) Deprecated.
-
Constructor Details
-
ClientProviders
public ClientProviders()Deprecated.
-
-
Method Details
-
getHalfDuplexClient
Deprecated. -
getFullDuplexClient
Deprecated. -
getHalfDuplexClient
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.
-