Package io.etcd.jetcd.kv
Class TxnResponse
java.lang.Object
io.etcd.jetcd.impl.AbstractResponse<io.etcd.jetcd.api.TxnResponse>
io.etcd.jetcd.kv.TxnResponse
- All Implemented Interfaces:
Response
TxnResponse returned by a transaction call contains lists of put, get, delete responses
corresponding to either the compare in txn.IF is evaluated to true or false.
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.etcd.jetcd.Response
Response.Header -
Constructor Summary
ConstructorsConstructorDescriptionTxnResponse(io.etcd.jetcd.api.TxnResponse txnResponse, ByteSequence namespace) -
Method Summary
Modifier and TypeMethodDescriptionReturns a list of DeleteResponse; empty list if none.Returns a list of GetResponse; empty list if none.Returns a list of PutResponse; empty list if none.Returns a list of TxnResponse; empty list if none.booleanReturns true if the compare evaluated to true or false otherwise.Methods inherited from class io.etcd.jetcd.impl.AbstractResponse
getHeader, getResponse, getResponseHeader, toString
-
Constructor Details
-
TxnResponse
-
-
Method Details
-
isSucceeded
public boolean isSucceeded()Returns true if the compare evaluated to true or false otherwise.- Returns:
- if succeeded.
-
getDeleteResponses
Returns a list of DeleteResponse; empty list if none.- Returns:
- delete responses.
-
getGetResponses
Returns a list of GetResponse; empty list if none.- Returns:
- get responses.
-
getPutResponses
Returns a list of PutResponse; empty list if none.- Returns:
- put responses.
-
getTxnResponses
Returns a list of TxnResponse; empty list if none.- Returns:
- txn responses.
-