Interface LedgerUniquenessCheckerClientService
-
- All Implemented Interfaces:
@DoNotImplement() public interface LedgerUniquenessCheckerClientService
Defines a service that is used to request uniqueness checking. The request will be processed asynchronously and a Future will be returned that can be used to check the outcome. This service can be injected to either flows or other services.
-
-
Method Summary
Modifier and Type Method Description abstract UniquenessCheckResult
requestUniquenessCheck(@NotNull() String transactionId, @NotNull() String originatorX500Name, @NotNull() List<String> inputStates, @NotNull() List<String> referenceStates, int numOutputStates, @Nullable() Instant timeWindowLowerBound, @NotNull() Instant timeWindowUpperBound)
Requests a uniqueness check. -
-
Method Detail
-
requestUniquenessCheck
@Suspendable() abstract UniquenessCheckResult requestUniquenessCheck(@NotNull() String transactionId, @NotNull() String originatorX500Name, @NotNull() List<String> inputStates, @NotNull() List<String> referenceStates, int numOutputStates, @Nullable() Instant timeWindowLowerBound, @NotNull() Instant timeWindowUpperBound)
Requests a uniqueness check.
- Parameters:
transactionId
- The ID of the transaction to be processed.originatorX500Name
- The X500 name of the party that requested (initiated) notarization.inputStates
- A list of the input state refs that belongs to the given transaction.referenceStates
- A list of the reference state refs that belongs to the given transaction.numOutputStates
- The number of output states in the given transaction.timeWindowLowerBound
- The earliest date/time from which the transaction is considered valid.timeWindowUpperBound
- The latest date/time until the transaction is considered valid.
-
-
-
-