call
Invoke a service method with input and wait for the response.
// Call with method reference and input
Response<GreetingResponse> response = client.service(Greeter.class)
.call(Greeter::greet, new Greeting("Alice"));
Content copied to clipboard
Return
a Response wrapping the result
Parameters
s
method reference (e.g., Greeter::greet)
input
the input parameter to pass to the method
open fun <I, O> call(s: BiFunction<SVC, I, O>, input: I, options: InvocationOptions.Builder): Response<O>
open fun <I, O> call(s: BiFunction<SVC, I, O>, input: I, invocationOptions: InvocationOptions): Response<O>
open fun <I> call(s: BiConsumer<SVC, I>, input: I, options: InvocationOptions.Builder): Response<Void>
open fun <I> call(s: BiConsumer<SVC, I>, input: I, invocationOptions: InvocationOptions): Response<Void>