diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/FindUnconsumedVisibleExactStates.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/FindUnconsumedVisibleExactStates.avsc deleted file mode 100644 index 1f192264c0..0000000000 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/FindUnconsumedVisibleExactStates.avsc +++ /dev/null @@ -1,13 +0,0 @@ -{ - "type": "record", - "name": "FindUnconsumedStatesByExactType", - "doc": "Retrieve the unconsumed visible states of specific type. This only retrieves exact type excluding its states of subclass unlike {@link FindUnconsumedStatesByType}. One of several types of ledger persistence request {@link LedgerPersistenceRequest}", - "namespace": "net.corda.data.ledger.persistence", - "fields": [ - { - "name": "stateClassName", - "type": "string", - "doc": "The fully qualified state class name" - } - ] -} diff --git a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc index cddfd596f0..d2a1676686 100644 --- a/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc +++ b/data/avro-schema/src/main/resources/avro/net/corda/data/ledger/persistence/LedgerPersistenceRequest.avsc @@ -34,7 +34,6 @@ "net.corda.data.ledger.persistence.PersistTransactionIfDoesNotExist", "net.corda.data.ledger.persistence.FindTransaction", "net.corda.data.ledger.persistence.FindUnconsumedStatesByType", - "net.corda.data.ledger.persistence.FindUnconsumedStatesByExactType", "net.corda.data.ledger.persistence.ResolveStateRefs", "net.corda.data.ledger.persistence.UpdateTransactionStatus", "net.corda.data.persistence.FindWithNamedQuery", diff --git a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java index fc90f4cc31..10887cbf94 100644 --- a/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java +++ b/ledger/ledger-utxo/src/main/java/net/corda/v5/ledger/utxo/UtxoLedgerService.java @@ -94,7 +94,7 @@ public interface UtxoLedgerService { * Only use this method if subclasses of {@code type} must be returned. *

* Use {@link #findUnconsumedStatesByExactType(Class)} to return exact instances of the input {@code type}. - * This method is more performant than {@link #findUnconsumedStatesByType(Class)}. + * This method is more performant than {@link #findUnconsumedStatesByExactType(Class, Integer, Instant)}. *

* Use {@link #query(String, Class)} for a more performant method of retrieving subclasses of a specified type. * @@ -106,17 +106,6 @@ public interface UtxoLedgerService { @Suspendable List> findUnconsumedStatesByType(@NotNull Class type); - /** - * Finds unconsumed states of the specified {@link ContractState} type in the vault. - * - * @param The underlying {@link ContractState} type. - * @param type The {@link ContractState} type to find in the vault. - * @return Returns a {@link List} of {@link StateAndRef} of unconsumed states of the specified type, or an empty list if no states could be found. - */ - @NotNull - @Suspendable - List> findUnconsumedStatesByExactType(@NotNull Class type); - /** * Finds unconsumed states of the specified {@link ContractState} type in the vault. *