public class DefaultRegistryClient extends Object implements RegistryClient
| 构造器和说明 |
|---|
DefaultRegistryClient(RegistryClientConfig registryClientConfig)
Instantiates a new Default registry client.
|
| 限定符和类型 | 方法和说明 |
|---|---|
RegisterCache |
getRegisterCache()
Getter method for property registerCache.
|
void |
init()
Init.
|
Configurator |
register(ConfiguratorRegistration registration)
Register configurator.
|
Publisher |
register(PublisherRegistration registration,
String... data)
Register publisher.
|
Subscriber |
register(SubscriberRegistration registration)
Register multi subscriber multi.
|
void |
setAuthManager(AuthManager authManager)
Setter method for property authManager.
|
void |
setConnectionEventProcessorMap(Map<com.alipay.remoting.ConnectionEventType,com.alipay.remoting.ConnectionEventProcessor> connectionEventProcessorMap)
Setter method for property connectionEventProcessorMap.
|
void |
setEventBus(EventBus eventBus)
Setter method for property eventBus.
|
void |
setLookoutSubscriber(LookoutSubscriber lookoutSubscriber)
Setter method for property lookoutSubscriber.
|
void |
setObserverHandler(ObserverHandler observerHandler)
Setter method for property observerHandler.
|
void |
setServerManager(ServerManager serverManager)
Setter method for property serverManager.
|
void |
setUserProcessorMap(Map<Class<?>,com.alipay.remoting.rpc.protocol.UserProcessor> userProcessorMap)
Setter method for property userProcessorMap.
|
int |
unregister(String dataId,
String group,
RegistryType registryType)
Unregister all publishers or subscribers belong to dataId.
|
public DefaultRegistryClient(RegistryClientConfig registryClientConfig)
registryClientConfig - the registry client configpublic void init()
public Publisher register(PublisherRegistration registration, String... data)
RegistryClientregister 在接口中 RegistryClientregistration - the registrationdata - the dataRegistryClient.register(PublisherRegistration, String...)public Subscriber register(SubscriberRegistration registration)
RegistryClientregister 在接口中 RegistryClientregistration - the registrationRegistryClient.register(SubscriberRegistration)public Configurator register(ConfiguratorRegistration registration)
RegistryClientregister 在接口中 RegistryClientregistration - the registrationRegistryClient.register(ConfiguratorRegistration)public int unregister(String dataId, String group, RegistryType registryType)
RegistryClientunregister 在接口中 RegistryClientdataId - the data idgroup - registration group, use default group if nullregistryType - the registry type, publisher or subscriberRegistryClient.unregister(String, String, RegistryType)public RegisterCache getRegisterCache()
public void setUserProcessorMap(Map<Class<?>,com.alipay.remoting.rpc.protocol.UserProcessor> userProcessorMap)
userProcessorMap - value to be assigned to property userProcessorMappublic void setConnectionEventProcessorMap(Map<com.alipay.remoting.ConnectionEventType,com.alipay.remoting.ConnectionEventProcessor> connectionEventProcessorMap)
connectionEventProcessorMap - value to be assigned to property connectionEventProcessorMappublic void setObserverHandler(ObserverHandler observerHandler)
observerHandler - value to be assigned to property observerHandlerpublic void setServerManager(ServerManager serverManager)
serverManager - value to be assigned to property serverManagerpublic void setAuthManager(AuthManager authManager)
authManager - value to be assigned to property authManagerpublic void setLookoutSubscriber(LookoutSubscriber lookoutSubscriber)
lookoutSubscriber - value to be assigned to property lookoutSubscriberpublic void setEventBus(EventBus eventBus)
eventBus - value to be assigned to property eventBusCopyright © 2023 The Ant Financial. All rights reserved.