T - the type parameterpublic interface RegistryService<T>
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONFIG_SPLIT_CHAR
The constant CONFIG_SPLIT_CHAR.
|
static Map<String,List<InetSocketAddress>> |
CURRENT_ADDRESS_MAP
Service node health check
|
static String |
PREFIX_SERVICE_MAPPING
The constant PREFIX_SERVICE_MAPPING.
|
static String |
PREFIX_SERVICE_ROOT
The constant PREFIX_SERVICE_ROOT.
|
static Set<String> |
SERVICE_GROUP_NAME |
| 限定符和类型 | 方法和说明 |
|---|---|
default List<InetSocketAddress> |
aliveLookup(String transactionServiceGroup) |
void |
close()
Close.
|
default String |
getServiceGroup(String key)
Get current service group name
|
List<InetSocketAddress> |
lookup(String key)
Lookup list.
|
default List<InetSocketAddress> |
refreshAliveLookup(String transactionServiceGroup,
List<InetSocketAddress> aliveAddress) |
void |
register(InetSocketAddress address)
Register.
|
void |
subscribe(String cluster,
T listener)
Subscribe.
|
void |
unregister(InetSocketAddress address)
Unregister.
|
void |
unsubscribe(String cluster,
T listener)
Unsubscribe.
|
static final String PREFIX_SERVICE_MAPPING
static final String PREFIX_SERVICE_ROOT
static final Map<String,List<InetSocketAddress>> CURRENT_ADDRESS_MAP
void register(InetSocketAddress address) throws Exception
address - the addressException - the exceptionvoid unregister(InetSocketAddress address) throws Exception
address - the addressException - the exceptionvoid subscribe(String cluster, T listener) throws Exception
cluster - the clusterlistener - the listenerException - the exceptionvoid unsubscribe(String cluster, T listener) throws Exception
cluster - the clusterlistener - the listenerException - the exceptionList<InetSocketAddress> lookup(String key) throws Exception
key - the keyException - the exceptiondefault String getServiceGroup(String key)
key - service groupdefault List<InetSocketAddress> aliveLookup(String transactionServiceGroup)
default List<InetSocketAddress> refreshAliveLookup(String transactionServiceGroup, List<InetSocketAddress> aliveAddress)
Copyright © 2022 Seata. All rights reserved.