Package net.corda.v5.ledger.consensual
Interface ConsensualLedgerService
-
- All Implemented Interfaces:
@DoNotImplement() public interface ConsensualLedgerService
Defines the consensual ledger service.
-
-
Method Summary
Modifier and Type Method Description abstract ConsensualTransactionBuilder
createTransactionBuilder()
Gets a ConsensualTransactionBuilder instance. abstract ConsensualSignedTransaction
findSignedTransaction(@NotNull() SecureHash id)
Finds a ConsensualSignedTransaction in the vault by its transaction ID. abstract ConsensualLedgerTransaction
findLedgerTransaction(@NotNull() SecureHash id)
Finds a ConsensualLedgerTransaction in the vault by its transaction ID. abstract ConsensualSignedTransaction
finalize(@NotNull() ConsensualSignedTransaction transaction, @NotNull() List<FlowSession> sessions)
Finalizes a transaction by collecting any remaining required signatures from counter-parties, and broadcasts the fully signed transaction to all participants involved in the transaction to be recorded in the vault. abstract ConsensualSignedTransaction
receiveFinality(@NotNull() FlowSession session, @NotNull() ConsensualTransactionValidator validator)
Verifies, signs and records the fully signed ConsensualSignedTransaction. -
-
Method Detail
-
createTransactionBuilder
@NotNull()@Suspendable() abstract ConsensualTransactionBuilder createTransactionBuilder()
Gets a ConsensualTransactionBuilder instance.
-
findSignedTransaction
@Nullable()@Suspendable() abstract ConsensualSignedTransaction findSignedTransaction(@NotNull() SecureHash id)
Finds a ConsensualSignedTransaction in the vault by its transaction ID.
- Parameters:
id
- The transaction ID of the ConsensualSignedTransaction to find in the vault.
-
findLedgerTransaction
@Nullable()@Suspendable() abstract ConsensualLedgerTransaction findLedgerTransaction(@NotNull() SecureHash id)
Finds a ConsensualLedgerTransaction in the vault by its transaction ID.
- Parameters:
id
- The transaction ID of the ConsensualLedgerTransaction to find in the vault.
-
finalize
@NotNull()@Suspendable() abstract ConsensualSignedTransaction finalize(@NotNull() ConsensualSignedTransaction transaction, @NotNull() List<FlowSession> sessions)
Finalizes a transaction by collecting any remaining required signatures from counter-parties, and broadcasts the fully signed transaction to all participants involved in the transaction to be recorded in the vault.
- Parameters:
transaction
- The transaction to finalize.sessions
- The sessions representing the counter-party participants of the transaction.
-
receiveFinality
@NotNull()@Suspendable() abstract ConsensualSignedTransaction receiveFinality(@NotNull() FlowSession session, @NotNull() ConsensualTransactionValidator validator)
Verifies, signs and records the fully signed ConsensualSignedTransaction.
- Parameters:
session
- The session from which the ConsensualSignedTransaction was received.validator
- Validates the received ConsensualSignedTransaction.
-
-
-
-