public class ServiceRegisterWrapper extends Object implements Closeable
| 构造器和说明 |
|---|
ServiceRegisterWrapper(org.apache.curator.framework.CuratorFramework client,
String basePath,
String address) |
ServiceRegisterWrapper(org.apache.curator.framework.CuratorFramework client,
String basePath,
String address,
int port) |
public ServiceRegisterWrapper(org.apache.curator.framework.CuratorFramework client,
String basePath,
String address)
throws Exception
Exceptionpublic void regist(ServiceDescription serviceDescription) throws Exception
Exceptionpublic void close()
throws IOException
close 在接口中 Closeableclose 在接口中 AutoCloseableIOExceptionCopyright © 2017. All rights reserved.