commit
00f989f51e
@ -138,6 +138,14 @@ public interface NamingService {
|
||||
*/
|
||||
void deregisterInstance(String serviceName, String groupName, String ip, int port, String clusterName) throws NacosException;
|
||||
|
||||
/**
|
||||
* deregister instance with full instance information and default groupName
|
||||
* @param serviceName
|
||||
* @param instance
|
||||
* @throws NacosException
|
||||
*/
|
||||
void deregisterInstance(String serviceName, Instance instance) throws NacosException;
|
||||
|
||||
/**
|
||||
* deregister instance with full instance information
|
||||
*
|
||||
|
@ -231,6 +231,11 @@ public class NacosNamingService implements NamingService {
|
||||
deregisterInstance(serviceName, groupName, instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deregisterInstance(String serviceName, Instance instance) throws NacosException {
|
||||
deregisterInstance(serviceName, Constants.DEFAULT_GROUP, instance);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deregisterInstance(String serviceName, String groupName, Instance instance) throws NacosException {
|
||||
beatReactor.removeBeatInfo(NamingUtils.getGroupedName(serviceName, groupName), instance.getIp(), instance.getPort());
|
||||
|
Loading…
Reference in New Issue
Block a user