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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.