JavaQueryContext

class JavaQueryContext(context: IQueryContext, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))

JavaQueryContext is created when a Query is received from a peer. It declares the actions that that can be taken in response to a remote support query.

Constructors

Link copied to clipboard
fun JavaQueryContext(context: IQueryContext, scope: CoroutineScope = CoroutineScope(Dispatchers.Default))

Functions

Link copied to clipboard
fun error(statusCode: Long, message: String): Future<Unit>

Respond to query with an error

Link copied to clipboard
fun getQueryId(): String

The ID of the associated query

Link copied to clipboard
fun hasExecuted(): Boolean

Indicates if the query has already been processed

Link copied to clipboard
fun respond(    tag: String,     response: ByteBuffer,     isFinal: Boolean = true): Future<Unit>

Respond to the Query with data.