public class NettyTransportClient extends Object implements ClusterTransportClient
| Modifier and Type | Field and Description |
|---|---|
static int |
RECONNECT_DELAY_MS |
| Constructor and Description |
|---|
NettyTransportClient(String host,
int port) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReady() |
ClusterResponse |
sendRequest(ClusterRequest request) |
void |
start() |
void |
stop() |
public static final int RECONNECT_DELAY_MS
public NettyTransportClient(String host, int port)
public void start()
throws Exception
start in interface ClusterTransportClientExceptionpublic void stop()
throws Exception
stop in interface ClusterTransportClientExceptionpublic boolean isReady()
isReady in interface ClusterTransportClientpublic ClusterResponse sendRequest(ClusterRequest request) throws Exception
sendRequest in interface ClusterTransportClientExceptionCopyright © 2022 Alibaba Group. All rights reserved.