| Modifier and Type | Method and Description |
|---|---|
CompletableFuture<TxnResponse> |
commit()
tries to commit the transaction.
|
TxnImpl |
Else(Op... ops)
takes a list of operations.
|
TxnImpl |
If(Cmp... cmps)
takes a list of comparison.
|
static TxnImpl |
newTxn(Function<io.etcd.jetcd.api.TxnRequest,CompletableFuture<TxnResponse>> f) |
TxnImpl |
Then(Op... ops)
takes a list of operations.
|
public static TxnImpl newTxn(Function<io.etcd.jetcd.api.TxnRequest,CompletableFuture<TxnResponse>> f)
public TxnImpl If(Cmp... cmps)
Txnpublic TxnImpl Then(Op... ops)
Txnpublic TxnImpl Else(Op... ops)
Txnpublic CompletableFuture<TxnResponse> commit()
TxnCopyright © 2019. All rights reserved.