package configuration
- Alphabetic
- Public
- All
Type Members
-
final
case class
CommandClientConfiguration(maxCommandsInFlight: Int, maxParallelSubmissions: Int, defaultDeduplicationTime: Duration) extends Product with Serializable
- maxCommandsInFlight
The maximum number of unconfirmed commands the client may track. The client will backpressure when this number is reached.
- maxParallelSubmissions
The maximum number of parallel command submissions at a given time. The client will backpressure when this number is reached.
- defaultDeduplicationTime
The deduplication time to use for commands that do not have a deduplication time set. The deduplication time is also used as the time after which commands time out in the command client.
-
final
case class
LedgerClientConfiguration(applicationId: String, ledgerIdRequirement: LedgerIdRequirement, commandClient: CommandClientConfiguration, sslContext: Option[SslContext], token: Option[String] = None) extends Product with Serializable
- applicationId
The string that will be used as an application identifier when issuing commands and retrieving transactions
- ledgerIdRequirement
A LedgerIdRequirement specifying how the ledger identifier must be checked against the one returned by the LedgerIdentityService
- commandClient
The CommandClientConfiguration that defines how the command client should be setup with regards to timeouts, commands in flight and command TTL
- sslContext
If defined, the context will be passed on to the underlying gRPC code to ensure the communication channel is secured by TLS
- token
If defined, the access token that will be passed by default, unless overridden in individual calls (mostly useful for short-lived applications)
-
final
case class
LedgerIdRequirement(ledgerId: String, enabled: Boolean) extends Product with Serializable
- ledgerId
The ID of the target ledger.
- enabled
If true, the client will only communicate with ledgers that have the expected LedgerId. Note that this setting only affects the binding process, when the ledger ID on the server is checked.
Value Members
- object CommandClientConfiguration extends Serializable