public class NodeQueryOptions extends Object
Constructor and Description |
---|
NodeQueryOptions()
Default constructor
|
NodeQueryOptions(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
BlockingQueryOptions |
getBlockingOptions()
Get options for blocking query
|
String |
getNear()
Get node name for sorting the list in ascending order based on the estimated round trip time from that node.
|
NodeQueryOptions |
setBlockingOptions(BlockingQueryOptions options)
Set options for blocking query
|
NodeQueryOptions |
setNear(String near)
Set node name for sorting the list in ascending order based on the estimated round trip time from that node.
|
JsonObject |
toJson()
Convert to JSON
|
public NodeQueryOptions()
public NodeQueryOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public String getNear()
public NodeQueryOptions setNear(String near)
near
- the node namepublic BlockingQueryOptions getBlockingOptions()
public NodeQueryOptions setBlockingOptions(BlockingQueryOptions options)
options
- the blocking optionsCopyright © 2024 Eclipse. All rights reserved.