Class TxnResponse
java.lang.Object
io.vertx.ext.consul.TxnResponse
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdds error to this responseAdds result to this responsegetError(int index) Returns the errors at the specified position in this listReturns list of transaction errorsintReturns the number of errors in this responsegetResult(int index) Returns the result at the specified position in this listReturns list of transaction resultsintReturns the number of results in this responsetoJson()Convert to JSON
-
Constructor Details
-
TxnResponse
public TxnResponse()Default constructor -
TxnResponse
-
-
Method Details
-
toJson
-
getResults
-
getResultsSize
public int getResultsSize()Returns the number of results in this response- Returns:
- the number of results in this response
-
getResult
Returns the result at the specified position in this list- Parameters:
index- index of the result to return- Returns:
- the result at the specified position in this list
-
addResult
Adds result to this response- Parameters:
result- the result- Returns:
- reference to this, for fluency
-
getErrors
-
getErrorsSize
public int getErrorsSize()Returns the number of errors in this response- Returns:
- the number of errors in this response
-
getError
Returns the errors at the specified position in this list- Parameters:
index- index of the error to return- Returns:
- the error at the specified position in this list
-
addError
Adds error to this response- Parameters:
error- the error- Returns:
- reference to this, for fluency
-