use of com.alibaba.nacos.api.naming.remote.request.NotifySubscriberRequest in project nacos by alibaba.
the class NamingGrpcResourceParserTest method mockOtherRequest.
private Request mockOtherRequest(String testNs, String testG, String testS) {
NotifySubscriberRequest result = new NotifySubscriberRequest();
result.setNamespace(testNs);
result.setGroupName(testG);
result.setServiceName(testS);
return result;
}
use of com.alibaba.nacos.api.naming.remote.request.NotifySubscriberRequest in project nacos by alibaba.
the class NamingPushRequestHandler method requestReply.
@Override
public Response requestReply(Request request) {
if (request instanceof NotifySubscriberRequest) {
NotifySubscriberRequest notifyResponse = (NotifySubscriberRequest) request;
serviceInfoHolder.processServiceInfo(notifyResponse.getServiceInfo());
return new NotifySubscriberResponse();
}
return null;
}
Aggregations