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

io.cloudstate.javasupport.ServiceCallFactory Maven / Gradle / Ivy

There is a newer version: 0.6.0
Show newest version
package io.cloudstate.javasupport;

/**
 * A service call factory.
 *
 * 

This is used to create {@link ServiceCall}'s that can be passed to {@link * EffectContext#effect(ServiceCall)} and {@link ClientActionContext#forward(ServiceCall)} f}. */ public interface ServiceCallFactory { /** * Lookup a reference to the service call with the given name and method. * * @param serviceName The fully qualified name of a gRPC service that this stateful service * serves. * @param methodName The name of a method on the gRPC service. * @param messageType The expected type of the input message to the method. * @param The type of the parameter that it accepts. * @return A reference to the service call. * @throws java.util.NoSuchElementException if the service or method is not found. * @throws IllegalArgumentException if the accepted input type for the method doesn't match * messageType. */ ServiceCallRef lookup(String serviceName, String methodName, Class messageType); }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy