Class ServiceQueryOptions
java.lang.Object
io.vertx.ext.consul.ServiceQueryOptions
Options used to requesting list of services
- Author:
- Ruslan Sennov
-
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorConstructor from JSON -
Method Summary
Modifier and TypeMethodDescriptionGet options for blocking querygetNear()Get node name for sorting the list in ascending order based on the estimated round trip time from that node.getTag()Get tag for filtering request resultssetBlockingOptions(BlockingQueryOptions options) Set options for blocking querySet node name for sorting the list in ascending order based on the estimated round trip time from that node.Set tag for filtering request resultstoJson()Convert to JSON
-
Constructor Details
-
ServiceQueryOptions
public ServiceQueryOptions()Default constructor -
ServiceQueryOptions
-
-
Method Details
-
toJson
-
getNear
Get node name for sorting the list in ascending order based on the estimated round trip time from that node.- Returns:
- the node name
-
setNear
Set node name for sorting the list in ascending order based on the estimated round trip time from that node.- Parameters:
near- the node name- Returns:
- reference to this, for fluency
-
getTag
-
setTag
Set tag for filtering request results- Parameters:
tag- the tag- Returns:
- reference to this, for fluency
-
getBlockingOptions
Get options for blocking query- Returns:
- the blocking options
-
setBlockingOptions
Set options for blocking query- Parameters:
options- the blocking options- Returns:
- reference to this, for fluency
-