Interface ServiceCallFactory


  • public interface ServiceCallFactory
    A service call factory.

    This is used to create ServiceCall's that can be passed to forward of the entity Effect.

    • Method Summary

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

      • lookup

        <T> ServiceCallRef<T> lookup​(String serviceName,
                                     String methodName,
                                     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.
        IllegalArgumentException - if the accepted input type for the method doesn't match messageType.