public class SocketD extends Object
| 构造器和说明 |
|---|
SocketD() |
| 限定符和类型 | 方法和说明 |
|---|---|
static Client |
createClient(String serverUrl)
创建客户端(支持 url 自动识别)
|
static Client |
createClientOrNull(String serverUrl)
创建客户端(支持 url 自动识别),如果没有则为 null
|
static ClusterClient |
createClusterClient(List<String> serverUrls)
创建集群客户端
|
static ClusterClient |
createClusterClient(String... serverUrls)
创建集群客户端
|
static Server |
createServer(String schema)
创建服务端
|
static Server |
createServerOrNull(String schema)
创建服务端,如果没有则为 null
|
static String |
protocolVersion()
协议版本号
|
static String |
version()
框架版本号
|
public static String version()
public static String protocolVersion()
public static Client createClient(String serverUrl)
serverUrl - 服务器地址public static Client createClientOrNull(String serverUrl)
serverUrl - 服务器地址public static ClusterClient createClusterClient(String... serverUrls)
serverUrls - 服务端地址public static ClusterClient createClusterClient(List<String> serverUrls)
serverUrls - 服务端地址Copyright © 2024. All rights reserved.