AbstractCashSelection

abstract class AbstractCashSelection(maxRetries: Int = 8, retrySleep: Int = 100, retryCap: Int = 2000)

Pluggable interface to allow for different cash selection provider implementations Default implementation in finance workflow module uses H2 database and a custom function within H2 to perform aggregation. Custom implementations must implement this interface and declare their implementation in META-INF/services/net.corda.finance.workflows.asset.selection.AbstractCashSelection.

Inheritors

Constructors

Link copied to clipboard
constructor(maxRetries: Int = 8, retrySleep: Int = 100, retryCap: Int = 2000)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
abstract override fun toString(): String
Link copied to clipboard
fun unconsumedCashStatesForSpending(services: ServiceHub, amount: Amount<Currency>, onlyFromIssuerParties: Set<AbstractParty> = emptySet(), notary: Party? = null, lockId: UUID, withIssuerRefs: Set<OpaqueBytes> = emptySet()): List<StateAndRef<Cash.State>>

Query to gather Cash states that are available and retry if they are temporarily unavailable.