Search in sources :

Example 1 with UnWatchServiceRequest

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);
}
Also used : UnWatchServiceRequest(com.tencent.polaris.api.rpc.UnWatchServiceRequest)

Aggregations

UnWatchServiceRequest (com.tencent.polaris.api.rpc.UnWatchServiceRequest)1