Search in sources :

Example 1 with NotifySubscriberRequest

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;
}
Also used : NotifySubscriberRequest(com.alibaba.nacos.api.naming.remote.request.NotifySubscriberRequest)

Example 2 with NotifySubscriberRequest

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;
}
Also used : NotifySubscriberRequest(com.alibaba.nacos.api.naming.remote.request.NotifySubscriberRequest) NotifySubscriberResponse(com.alibaba.nacos.api.naming.remote.response.NotifySubscriberResponse)

Aggregations

NotifySubscriberRequest (com.alibaba.nacos.api.naming.remote.request.NotifySubscriberRequest)2 NotifySubscriberResponse (com.alibaba.nacos.api.naming.remote.response.NotifySubscriberResponse)1