public class ServiceQueryOptions extends Object
Constructor and Description |
---|
ServiceQueryOptions()
Default constructor
|
ServiceQueryOptions(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.
|
String |
getTag()
Get tag for filtering request results
|
ServiceQueryOptions |
setBlockingOptions(BlockingQueryOptions options)
Set options for blocking query
|
ServiceQueryOptions |
setNear(String near)
Set node name for sorting the list in ascending order based on the estimated round trip time from that node.
|
ServiceQueryOptions |
setTag(String tag)
Set tag for filtering request results
|
JsonObject |
toJson()
Convert to JSON
|
public ServiceQueryOptions()
public ServiceQueryOptions(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public String getNear()
public ServiceQueryOptions setNear(String near)
near
- the node namepublic String getTag()
public ServiceQueryOptions setTag(String tag)
tag
- the tagpublic BlockingQueryOptions getBlockingOptions()
public ServiceQueryOptions setBlockingOptions(BlockingQueryOptions options)
options
- the blocking optionsCopyright © 2022 Eclipse. All rights reserved.