Package com.daml.ledger.javaapi.data
Class UpdateSubmission<U>
java.lang.Object
com.daml.ledger.javaapi.data.UpdateSubmission<U>
This class can be used to build a valid submission for an Update. It provides
create(String, String, Update)
for initial creation and methods to set optional parameters
e.g withActAs(List)
, withWorkflowId(String)
etc.
Usage:
var submission = UpdateSubmission.create(userId, commandId, update) .withAccessToken(token) .withParty(party) .with...
-
Method Summary
Modifier and TypeMethodDescriptionstatic <U> UpdateSubmission<U>
getActAs()
@NonNull List<DisclosedContract>
withAccessToken
(Optional<String> accessToken) withDeduplicationDuration
(Optional<Duration> deduplicationDuration) withDeduplicationOffset
(Optional<Long> deduplicationOffset) withDisclosedContracts
(List<@NonNull DisclosedContract> disclosedContracts) withMinLedgerTimeAbs
(Optional<Instant> minLedgerTimeAbs) withMinLedgerTimeRel
(Optional<Duration> minLedgerTimeRel) withPackageIdSelectionPreference
(List<@NonNull String> packageIdSelectionPreference) withPrefetchContractKeys
(List<PrefetchContractKey> prefetchContractKeys) withReadAs
(List<@NonNull String> readAs) withSynchronizerId
(String synchronizerId) withWorkflowId
(String workflowId)
-
Method Details
-
create
-
getWorkflowId
-
getUserId
-
getCommandId
-
getActAs
-
getReadAs
-
getMinLedgerTimeAbs
-
getMinLedgerTimeRel
-
getDeduplicationDuration
-
getDeduplicationOffset
-
getUpdate
-
getAccessToken
-
getSynchronizerId
-
getDisclosedContracts
-
getPackageIdSelectionPreference
-
getPrefetchContractKeys
-
withWorkflowId
-
withActAs
-
withActAs
-
withReadAs
-
withMinLedgerTimeAbs
-
withMinLedgerTimeRel
-
withDeduplicationDuration
-
withDeduplicationOffset
-
withAccessToken
-
withSynchronizerId
-
withDisclosedContracts
public UpdateSubmission<U> withDisclosedContracts(List<@NonNull DisclosedContract> disclosedContracts) -
withPackageIdSelectionPreference
public UpdateSubmission<U> withPackageIdSelectionPreference(List<@NonNull String> packageIdSelectionPreference) -
withPrefetchContractKeys
-
toCommandsSubmission
-