T - the type parameterpublic interface RegistryService<T>
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
CONFIG_SPLIT_CHAR
The constant CONFIG_SPLIT_CHAR.
|
static String |
PREFIX_SERVICE_MAPPING
The constant PREFIX_SERVICE_MAPPING.
|
static String |
PREFIX_SERVICE_ROOT
The constant PREFIX_SERVICE_ROOT.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Close.
|
List<InetSocketAddress> |
lookup(String key)
Lookup list.
|
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
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 exceptionCopyright © 2019 Seata. All rights reserved.