Interface GrpcService<T,​R>

  • Type Parameters:
    T - type of the request object
    R - type of the response object
    Functional Interface:
    This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

    @FunctionalInterface
    public interface GrpcService<T,​R>
    Represents a gRPC service that can be used as part of a mapUsingServiceAsync call. Use GrpcServices to create a service.
    Since:
    Jet 4.1
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<R> call​(T input)
      Calls the requested service and returns a future which will be completed with the result once a response is received.
    • Method Detail

      • call

        @Nonnull
        java.util.concurrent.CompletableFuture<R> call​(@Nonnull
                                                       T input)
        Calls the requested service and returns a future which will be completed with the result once a response is received.