Interface ServiceCallRef<T>

  • Type Parameters:
    T - The type of message the call accepts.

    public interface ServiceCallRef<T>
    A reference to a call on a service.
    • Method Summary

      All Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      default ServiceCall createCall​(T message)
      Create a call from this reference, using the given message as the message to pass to it when it's invoked.
      ServiceCall createCall​(T message, Metadata metadata)
      Create a call from this reference, using the given message as the message to pass to it when it's invoked.
      com.google.protobuf.Descriptors.MethodDescriptor method()
      The protobuf descriptor for the method.
    • Method Detail

      • method

        com.google.protobuf.Descriptors.MethodDescriptor method()
        The protobuf descriptor for the method.
        Returns:
        The protobuf descriptor for the method.
      • createCall

        default ServiceCall createCall​(T message)
        Create a call from this reference, using the given message as the message to pass to it when it's invoked.
        Parameters:
        message - The message to pass to the method.
        Returns:
        A service call that can be used as a forward or effect.
      • createCall

        ServiceCall createCall​(T message,
                               Metadata metadata)
        Create a call from this reference, using the given message as the message to pass to it when it's invoked.
        Parameters:
        message - The message to pass to the method.
        metadata - The Metadata to send.
        Returns:
        A service call that can be used as a forward or effect.