public class RaftRegistryServiceImpl extends Object implements RegistryService<ConfigChangeListener>
CONFIG_SPLIT_CHAR, CURRENT_ADDRESS_MAP, PREFIX_SERVICE_MAPPING, PREFIX_SERVICE_ROOT, SERVICE_GROUP_NAME| Modifier and Type | Method and Description |
|---|---|
List<InetSocketAddress> |
aliveLookup(String transactionServiceGroup) |
void |
close()
Close.
|
List<InetSocketAddress> |
lookup(String key)
Lookup list.
|
List<InetSocketAddress> |
refreshAliveLookup(String transactionServiceGroup,
List<InetSocketAddress> aliveAddress) |
void |
register(InetSocketAddress address)
Register.
|
protected static void |
startQueryMetadata() |
void |
subscribe(String cluster,
ConfigChangeListener listener)
Subscribe.
|
void |
unregister(InetSocketAddress address)
Unregister.
|
void |
unsubscribe(String cluster,
ConfigChangeListener listener)
Unsubscribe.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetServiceGrouppublic void register(InetSocketAddress address) throws Exception
RegistryServiceregister in interface RegistryService<ConfigChangeListener>address - the addressException - the exceptionpublic void unregister(InetSocketAddress address) throws Exception
RegistryServiceunregister in interface RegistryService<ConfigChangeListener>address - the addressException - the exceptionpublic void subscribe(String cluster, ConfigChangeListener listener) throws Exception
RegistryServicesubscribe in interface RegistryService<ConfigChangeListener>cluster - the clusterlistener - the listenerException - the exceptionpublic void unsubscribe(String cluster, ConfigChangeListener listener) throws Exception
RegistryServiceunsubscribe in interface RegistryService<ConfigChangeListener>cluster - the clusterlistener - the listenerException - the exceptionprotected static void startQueryMetadata()
public void close()
RegistryServiceclose in interface RegistryService<ConfigChangeListener>public List<InetSocketAddress> aliveLookup(String transactionServiceGroup)
aliveLookup in interface RegistryService<ConfigChangeListener>public List<InetSocketAddress> refreshAliveLookup(String transactionServiceGroup, List<InetSocketAddress> aliveAddress)
refreshAliveLookup in interface RegistryService<ConfigChangeListener>public List<InetSocketAddress> lookup(String key) throws Exception
RegistryServicelookup in interface RegistryService<ConfigChangeListener>key - the keyException - the exceptionCopyright © 2023 Seata. All rights reserved.