public class QueryRequest
extends java.lang.Object
Peer.query(QueryRequest)
Modifier and Type | Field and Description |
---|---|
static java.lang.Object |
ARGS |
static java.lang.Object |
QUERY |
static java.lang.Object |
TIMEOUT |
Modifier and Type | Method and Description |
---|---|
java.util.Map |
asData() |
static QueryRequest |
create(java.lang.Object query,
java.lang.Object... inputs)
Creates a QueryRequest object.
|
QueryRequest |
timeout(long timeoutMsec)
The number of milliseconds after which a query may be stopped.
|
java.lang.String |
toString() |
public static final java.lang.Object ARGS
public static final java.lang.Object QUERY
public static final java.lang.Object TIMEOUT
public static QueryRequest create(java.lang.Object query, java.lang.Object... inputs)
query
and inputs
take the same form as described in Peer.query(Object, Object...)
query
- a data structure describing the queryinputs
- inputs bound to the names in :in
section of query
Peer.query(QueryRequest)
public QueryRequest timeout(long timeoutMsec)
The number of milliseconds after which a query may be stopped.
Note: timeout is approximate, it is meant to protect against long running queries, but is not guaranteed to stop after precisely the duration specified.
timeoutMsec
- number of milliseconds after which a query may be stopped.public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Map asData()