Package org.hyperledger.fabric.client
Interface Commit
- All Superinterfaces:
Signable
- All Known Subinterfaces:
SubmittedTransaction
Allows access to information about a transaction that is committed to the ledger.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Status
Get the status of the committed transaction.getStatus
(UnaryOperator<CallOptions> options) Get the status of the committed transaction.default Status
getStatus
(CallOption... options) Deprecated.Get the transaction ID.
-
Method Details
-
getTransactionId
String getTransactionId()Get the transaction ID.- Returns:
- A transaction ID.
-
getStatus
Get the status of the committed transaction. If the transaction has not yet committed, this method blocks until the commit occurs.- Returns:
- Transaction commit status.
- Throws:
CommitStatusException
- if the gRPC service invocation fails.
-
getStatus
Get the status of the committed transaction. If the transaction has not yet committed, this method blocks until the commit occurs.- Parameters:
options
- Function that transforms call options.- Returns:
- Transaction commit status.
- Throws:
CommitStatusException
- if the gRPC service invocation fails.
-
getStatus
Deprecated.Replaced bygetStatus(UnaryOperator)
.Get the status of the committed transaction. If the transaction has not yet committed, this method blocks until the commit occurs.- Parameters:
options
- Call options.- Returns:
- Transaction commit status.
- Throws:
CommitStatusException
- if the gRPC service invocation fails.
-
getStatus(UnaryOperator)
.