Class TestGrpcClient

java.lang.Object
org.pipservices4.grpc.clients.GrpcClient
org.pipservices4.grpc.test.TestGrpcClient
All Implemented Interfaces:
org.pipservices4.components.config.IConfigurable, org.pipservices4.components.refer.IReferenceable, org.pipservices4.components.run.IClosable, org.pipservices4.components.run.IOpenable

public class TestGrpcClient extends GrpcClient
GRPC client used for automated testing.
  • Constructor Details

    • TestGrpcClient

      public TestGrpcClient(io.grpc.ServiceDescriptor serviceDescriptor)
  • Method Details

    • call

      public <TRequest, TResponse> TResponse call(String methodName, org.pipservices4.components.context.IContext context, TRequest request)
      Calls a remote method via GRPC protocol.
      Overrides:
      call in class GrpcClient
      Parameters:
      methodName - a method name to called
      context - (optional) a context to trace execution through call chain.
      request - (optional) request object.
      Returns:
      the received result.