public static class VaultService.DefaultImpls
A interface VaultService
is responsible for securely and safely persisting the current state of a vault to storage. The
vault service vends immutable snapshots of the current vault for working with: if you build a transaction based
on a vault that isn't current, be aware that it may end up being invalid if the states that were used have been
consumed by someone else first!
Note that transactions we've seen are held by the storage service, not the vault.
interface VaultService
Modifier and Type | Method and Description |
---|---|
static <T extends ContractState> |
queryBy(VaultService $this,
java.lang.Class<? extends T> contractStateType) |
static <T extends ContractState> |
queryBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria) |
static <T extends ContractState> |
queryBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
PageSpecification paging) |
static <T extends ContractState> |
queryBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria,
PageSpecification paging) |
static <T extends ContractState> |
queryBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria,
Sort sorting) |
static <T extends ContractState> |
queryBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria,
PageSpecification paging,
Sort sorting) |
static <T extends ContractState> |
trackBy(VaultService $this,
java.lang.Class<? extends T> contractStateType) |
static <T extends ContractState> |
trackBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria) |
static <T extends ContractState> |
trackBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
PageSpecification paging) |
static <T extends ContractState> |
trackBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria,
PageSpecification paging) |
static <T extends ContractState> |
trackBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria,
Sort sorting) |
static <T extends ContractState> |
trackBy(VaultService $this,
java.lang.Class<? extends T> contractStateType,
QueryCriteria criteria,
PageSpecification paging,
Sort sorting) |
static CordaFuture<net.corda.core.node.services.Vault.Update> |
whenConsumed(VaultService $this,
StateRef ref)
Provide a
interface CordaFuture for when a class StateRef is consumed, which can be very useful in building tests. |
public static CordaFuture<net.corda.core.node.services.Vault.Update> whenConsumed(VaultService $this, StateRef ref)
Provide a interface CordaFuture
for when a class StateRef
is consumed, which can be very useful in building tests.
interface CordaFuture
,
class StateRef
public static <T extends ContractState> Vault.Page<T> queryBy(VaultService $this, java.lang.Class<? extends T> contractStateType)
public static <T extends ContractState> Vault.Page<T> queryBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria)
public static <T extends ContractState> Vault.Page<T> queryBy(VaultService $this, java.lang.Class<? extends T> contractStateType, PageSpecification paging)
public static <T extends ContractState> Vault.Page<T> queryBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria, PageSpecification paging)
public static <T extends ContractState> Vault.Page<T> queryBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria, Sort sorting)
public static <T extends ContractState> Vault.Page<T> queryBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria, PageSpecification paging, Sort sorting)
public static <T extends ContractState> DataFeed<net.corda.core.node.services.Vault.Page,net.corda.core.node.services.Vault.Update> trackBy(VaultService $this, java.lang.Class<? extends T> contractStateType)
public static <T extends ContractState> DataFeed<net.corda.core.node.services.Vault.Page,net.corda.core.node.services.Vault.Update> trackBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria)
public static <T extends ContractState> DataFeed<net.corda.core.node.services.Vault.Page,net.corda.core.node.services.Vault.Update> trackBy(VaultService $this, java.lang.Class<? extends T> contractStateType, PageSpecification paging)
public static <T extends ContractState> DataFeed<net.corda.core.node.services.Vault.Page,net.corda.core.node.services.Vault.Update> trackBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria, PageSpecification paging)
public static <T extends ContractState> DataFeed<net.corda.core.node.services.Vault.Page,net.corda.core.node.services.Vault.Update> trackBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria, Sort sorting)
public static <T extends ContractState> DataFeed<net.corda.core.node.services.Vault.Page,net.corda.core.node.services.Vault.Update> trackBy(VaultService $this, java.lang.Class<? extends T> contractStateType, QueryCriteria criteria, PageSpecification paging, Sort sorting)