Interface ServiceCallFactory

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <T> ServiceCallRef<T> lookup​(java.lang.String serviceName, java.lang.String methodName, java.lang.Class<T> messageType)
      Lookup a reference to the service call with the given name and method.
    • Method Detail

      • lookup

        <T> ServiceCallRef<T> lookup​(java.lang.String serviceName,
                                     java.lang.String methodName,
                                     java.lang.Class<T> messageType)
        Lookup a reference to the service call with the given name and method.
        Type Parameters:
        T - The type of the parameter that it accepts.
        Parameters:
        serviceName - The fully qualified name of a gRPC service that this stateful service serves.
        methodName - The name of a method on the gRPC service.
        messageType - The expected type of the input message to the method.
        Returns:
        A reference to the service call.
        Throws:
        java.util.NoSuchElementException - if the service or method is not found.
        java.lang.IllegalArgumentException - if the accepted input type for the method doesn't match messageType.