call

@ApiStatus.Experimental
open fun <I, O> call(s: BiFunction<SVC, I, O>, input: I): Response<O>

EXPERIMENTAL API: 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"));

Return

a Response wrapping the result

Parameters

s

method reference (e.g., Greeter::greet)

input

the input parameter to pass to the method


@ApiStatus.Experimental
open fun <I, O> call(s: BiFunction<SVC, I, O>, input: I, options: InvocationOptions.Builder): Response<O>
@ApiStatus.Experimental
open fun <I, O> call(s: BiFunction<SVC, I, O>, input: I, invocationOptions: InvocationOptions): Response<O>
@ApiStatus.Experimental
open fun <I> call(s: BiConsumer<SVC, I>, input: I): Response<Void>
@ApiStatus.Experimental
open fun <I> call(s: BiConsumer<SVC, I>, input: I, options: InvocationOptions.Builder): Response<Void>
@ApiStatus.Experimental
open fun <I> call(s: BiConsumer<SVC, I>, input: I, invocationOptions: InvocationOptions): Response<Void>
@ApiStatus.Experimental
open fun <O> call(s: (SVC) -> O): Response<O>
@ApiStatus.Experimental
open fun <O> call(s: (SVC) -> O, options: InvocationOptions.Builder): Response<O>
@ApiStatus.Experimental
open fun <O> call(s: (SVC) -> O, invocationOptions: InvocationOptions): Response<O>
@ApiStatus.Experimental
open fun call(s: Consumer<SVC>): Response<Void>
@ApiStatus.Experimental
open fun call(s: Consumer<SVC>, options: InvocationOptions.Builder): Response<Void>
@ApiStatus.Experimental
open fun call(s: Consumer<SVC>, invocationOptions: InvocationOptions): Response<Void>