use of com.tencent.polaris.api.rpc.UnWatchServiceRequest in project polaris-java-agent by polarismesh.
the class PolarisOperator method unwatchService.
public void unwatchService(String service, ServiceListener serviceListener) {
UnWatchServiceRequest watchServiceRequest = UnWatchServiceRequest.UnWatchServiceRequestBuilder.anUnWatchServiceRequest().namespace(polarisConfig.getNamespace()).service(service).listeners(Collections.singletonList(serviceListener)).build();
consumerAPI.unWatchService(watchServiceRequest);
}
Aggregations