JavaQueryReceipt
class JavaQueryReceipt(receipt: IQueryReceipt, scope: CoroutineScope = CoroutineScope(Dispatchers.Default)) : Future<QueryResponse>
Content copied to clipboard
Notifies a sender of QueryResponses from the peer.
If expecting multiple responses, handle the onResponse
event to receive each response. If treated as a Future, only the final response is returned.
When expecting a single response, treat this class as a future
Constructors
Link copied to clipboard
fun JavaQueryReceipt(receipt: IQueryReceipt, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))
Content copied to clipboard
Functions
Link copied to clipboard
open operator override fun get(timeout: Long, unit: TimeUnit): QueryResponse
Content copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun setOnResponseReceivedHandler(handler: IQueryResponseReceivedEventHandler)
Content copied to clipboard
Event raised when a response is received from a remote peer. The event is raised once for each part of a multipart QueryResponse.