public class PreparedQueryExecuteResponse extends Object
Constructor and Description |
---|
PreparedQueryExecuteResponse()
Default constructor
|
PreparedQueryExecuteResponse(JsonObject json)
Constructor from JSON
|
Modifier and Type | Method and Description |
---|---|
String |
getDc()
Get the datacenter that ultimately provided the list of nodes
|
String |
getDnsTtl()
Get the TTL duration when query results are served over DNS.
|
int |
getFailovers()
Get the number of remote datacenters that were queried while executing the query.
|
List<ServiceEntry> |
getNodes()
Get the list of healthy nodes providing the given service, as specified by the constraints of the prepared query.
|
String |
getService()
Get the service name that the query was selecting.
|
PreparedQueryExecuteResponse |
setDc(String dc)
Set the datacenter that ultimately provided the list of nodes
|
PreparedQueryExecuteResponse |
setDnsTtl(String dnsTtl)
Set the TTL duration when query results are served over DNS.
|
PreparedQueryExecuteResponse |
setFailovers(int failovers)
Set the number of remote datacenters that were queried while executing the query.
|
PreparedQueryExecuteResponse |
setNodes(List<ServiceEntry> nodes)
Set the list of healthy nodes providing the given service, as specified by the constraints of the prepared query.
|
PreparedQueryExecuteResponse |
setService(String service)
Set the service name that the query was selecting.
|
JsonObject |
toJson()
Convert to JSON
|
public PreparedQueryExecuteResponse()
public PreparedQueryExecuteResponse(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public String getService()
public PreparedQueryExecuteResponse setService(String service)
service
- the service name that the query was selecting.public String getDc()
public PreparedQueryExecuteResponse setDc(String dc)
dc
- the datacenter that ultimately provided the list of nodespublic String getDnsTtl()
public PreparedQueryExecuteResponse setDnsTtl(String dnsTtl)
dnsTtl
- the TTL durationpublic int getFailovers()
public PreparedQueryExecuteResponse setFailovers(int failovers)
failovers
- the number of remote datacenters that were queried while executing the query.public List<ServiceEntry> getNodes()
public PreparedQueryExecuteResponse setNodes(List<ServiceEntry> nodes)
nodes
- the list of healthy nodes providing the given service, as specified by the constraints of the prepared query.Copyright © 2023 Eclipse. All rights reserved.