Class NodeQueryOptions
java.lang.Object
io.vertx.ext.consul.NodeQueryOptions
Options used to requesting list of nodes
- Author:
- Ruslan Sennov
-
Constructor Summary
Constructors -
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.setBlockingOptions(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.toJson()Convert to JSON
-
Constructor Details
-
NodeQueryOptions
public NodeQueryOptions()Default constructor -
NodeQueryOptions
-
-
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
-
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
-