com.r3corda.protocols / sendRequest

sendRequest

fun <R : Any> MessagingService.sendRequest(topic: String, request: ServiceRequestMessage, target: SingleMessageRecipient, executor: Executor? = null): <ERROR CLASS><R>

Sends a ServiceRequestMessage to target and returns a ListenableFuture of the response.

Parameters

R - The type of the response.