public interface ClusterTransportClient
| Modifier and Type | Method and Description |
|---|---|
boolean |
isReady()
Check whether the client has been started and ready for sending requests.
|
ClusterResponse |
sendRequest(ClusterRequest request)
Send request to remote server and get response.
|
void |
start()
Start the client.
|
void |
stop()
Stop the client.
|
void start()
throws Exception
Exception - some error occurred (e.g. initialization failed)void stop() throws Exception
Exception - some error occurred (e.g. shutdown failed)ClusterResponse sendRequest(ClusterRequest request) throws Exception
request - Sentinel cluster requestException - some error occursboolean isReady()
Copyright © 2020 Alibaba Group. All rights reserved.