| 构造器和说明 |
|---|
ClientConnection(ServerManager serverManager,
List<com.alipay.remoting.rpc.protocol.UserProcessor> userProcessorList,
Map<com.alipay.remoting.ConnectionEventType,com.alipay.remoting.ConnectionEventProcessor> connectionEventProcessorMap,
RegisterCache registerCache,
RegistryClientConfig config)
Instantiates a new Client connection.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
Destroy.
|
void |
ensureConnected()
Ensure connected.
|
String |
getRemoteAddress()
Gets remote address.
|
void |
init()
Init.
|
Object |
invokeSync(Object request)
Invoke sync object.
|
boolean |
isConnected()
Is connected boolean.
|
void |
setConnectionEventProcessorMap(Map<com.alipay.remoting.ConnectionEventType,com.alipay.remoting.ConnectionEventProcessor> connectionEventProcessorMap)
Setter method for property connectionEventProcessorMap.
|
void |
setServerManager(ServerManager serverManager)
Setter method for property serverManager.
|
void |
setUserProcessorList(List<com.alipay.remoting.rpc.protocol.UserProcessor> userProcessorList)
Setter method for property userProcessorList.
|
void |
setWorker(Worker worker)
Setter method for property worker.
|
public ClientConnection(ServerManager serverManager, List<com.alipay.remoting.rpc.protocol.UserProcessor> userProcessorList, Map<com.alipay.remoting.ConnectionEventType,com.alipay.remoting.ConnectionEventProcessor> connectionEventProcessorMap, RegisterCache registerCache, RegistryClientConfig config)
serverManager - the server manageruserProcessorList - the user processor listconnectionEventProcessorMap - the connection event processor mapconfig - the configpublic void ensureConnected()
throws InterruptedException
ensureConnected 在接口中 ClientInterruptedException - the interrupted exceptionpublic Object invokeSync(Object request) throws com.alipay.remoting.exception.RemotingException, InterruptedException
invokeSync 在接口中 Clientrequest - the requestcom.alipay.remoting.exception.RemotingException - the remoting exceptionInterruptedException - the interrupted exceptionpublic String getRemoteAddress()
public boolean isConnected()
isConnected 在接口中 Clientpublic void destroy()
public void setServerManager(ServerManager serverManager)
serverManager - value to be assigned to property serverManagerpublic void setUserProcessorList(List<com.alipay.remoting.rpc.protocol.UserProcessor> userProcessorList)
userProcessorList - value to be assigned to property userProcessorListpublic void setConnectionEventProcessorMap(Map<com.alipay.remoting.ConnectionEventType,com.alipay.remoting.ConnectionEventProcessor> connectionEventProcessorMap)
connectionEventProcessorMap - value to be assigned to property connectionEventProcessorMappublic void setWorker(Worker worker)
worker - value to be assigned to property workerCopyright © 2023 The Ant Financial. All rights reserved.