io.cloudstate.javasupport.ServiceCallRef Maven / Gradle / Ivy
package io.cloudstate.javasupport;
import com.google.protobuf.Descriptors;
/**
* A reference to a call on a service.
*
* @param The type of message the call accepts.
*/
public interface ServiceCallRef {
/**
* The protobuf descriptor for the method.
*
* @return The protobuf descriptor for the method.
*/
Descriptors.MethodDescriptor method();
/**
* Create a call from this reference, using the given message as the message to pass to it when
* it's invoked.
*
* @param message The message to pass to the method.
* @return A service call that can be used as a forward or effect.
*/
ServiceCall createCall(T message);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy