All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.pipservices4.grpc.test.TestGrpcClient Maven / Gradle / Ivy

package org.pipservices4.grpc.test;

import org.pipservices4.components.context.IContext;
import org.pipservices4.grpc.clients.GrpcClient;

/**
 * GRPC client used for automated testing.
 */
public class TestGrpcClient extends GrpcClient {
    public TestGrpcClient(io.grpc.ServiceDescriptor serviceDescriptor) {
        super(serviceDescriptor);
    }

    /**
     * Calls a remote method via GRPC protocol.
     *
     * @param methodName            a method name to called
     * @param context     (optional) a context to trace execution through call chain.
     * @param request           (optional) request object.
     * @return the received result.
     */
    @Override
    public   TResponse call(String methodName, IContext context, TRequest request) {
        return super.call(methodName, context, request);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy