send
Send a one-way invocation without waiting for the response.
// Send without waiting for response
SendResponse<GreetingResponse> sendResponse = client.service(Greeter.class)
.send(Greeter::greet, new Greeting("Alice"));
Content copied to clipboard
open fun <I, O> send(s: BiFunction<SVC, I, O>, input: I, options: InvocationOptions.Builder): SendResponse<O>
open fun <I, O> send(s: BiFunction<SVC, I, O>, input: I, invocationOptions: InvocationOptions): SendResponse<O>
open fun <I> send(s: BiConsumer<SVC, I>, input: I, options: InvocationOptions.Builder): SendResponse<Void>
open fun <I> send(s: BiConsumer<SVC, I>, input: I, invocationOptions: InvocationOptions): SendResponse<Void>
Like send, with invocation options.
Like send, with a delay.
open fun <I, O> send(s: BiFunction<SVC, I, O>, input: I, delay: Duration, options: InvocationOptions.Builder): SendResponse<O>
open fun <I, O> send(s: BiFunction<SVC, I, O>, input: I, delay: Duration, invocationOptions: InvocationOptions): SendResponse<O>
open fun <I> send(s: BiConsumer<SVC, I>, input: I, delay: Duration, options: InvocationOptions.Builder): SendResponse<Void>
open fun <I> send(s: BiConsumer<SVC, I>, input: I, delay: Duration, invocationOptions: InvocationOptions): SendResponse<Void>
open fun <O> send(s: (SVC) -> O, delay: Duration, options: InvocationOptions.Builder): SendResponse<O>
open fun <O> send(s: (SVC) -> O, delay: Duration, invocationOptions: InvocationOptions): SendResponse<O>
open fun send(s: Consumer<SVC>, delay: Duration, options: InvocationOptions.Builder): SendResponse<Void>
open fun send(s: Consumer<SVC>, delay: Duration, invocationOptions: InvocationOptions): SendResponse<Void>
Like send, with a delay and invocation options.
Like send, for methods without a return value.
Like send, for methods without input.
Like send, for methods without input or return value.