Class BaseQldbDriverBuilder<TBuilder>
Inherited Members
Namespace: Amazon.QLDB.Driver
Assembly: Amazon.QLDB.Driver.dll
Syntax
public abstract class BaseQldbDriverBuilder<TBuilder>
where TBuilder : BaseQldbDriverBuilder<TBuilder>
Type Parameters
Name | Description |
---|---|
TBuilder |
Methods
| Improve this Doc View SourceWithAWSCredentials(AWSCredentials)
Specify the credentials that should be used for the driver's sessions.
Declaration
public TBuilder WithAWSCredentials(AWSCredentials credentials)
Parameters
Type | Name | Description |
---|---|---|
Amazon.Runtime.AWSCredentials | credentials | The credentials to create a driver with. |
Returns
Type | Description |
---|---|
TBuilder | This builder object. |
WithLedger(String)
Specify the ledger that should be used for the driver's sessions.
Declaration
public TBuilder WithLedger(string ledgerName)
Parameters
Type | Name | Description |
---|---|---|
System.String | ledgerName | The name of the ledger to create a driver with. |
Returns
Type | Description |
---|---|
TBuilder | This builder object. |
WithLogger(ILogger)
Specify the logger that should be used for the driver's sessions.
Declaration
public TBuilder WithLogger(ILogger logger)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Logging.ILogger | logger | The logger to create a driver with. |
Returns
Type | Description |
---|---|
TBuilder | This builder object. |
WithMaxConcurrentTransactions(Int32)
Specify the maximum number of concurrent transactions the driver can handle.
Set to 0 by default to use the maximum possible amount allowed by the client builder's configuration.
Declaration
public TBuilder WithMaxConcurrentTransactions(int maxConcurrentTransactions)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | maxConcurrentTransactions | The maximum number of transactions can be running at any one time. This amount cannot exceed the amount set in the Amazon.Runtime.ClientConfig used for this builder. |
Returns
Type | Description |
---|---|
TBuilder | This builder object. |
WithQLDBSessionConfig(AmazonQLDBSessionConfig)
Specify the configuration that should be used for the driver's sessions.
Declaration
public TBuilder WithQLDBSessionConfig(AmazonQLDBSessionConfig sessionConfig)
Parameters
Type | Name | Description |
---|---|---|
Amazon.QLDBSession.AmazonQLDBSessionConfig | sessionConfig | The configuration to create a driver with. |
Returns
Type | Description |
---|---|
TBuilder | This builder object. |
WithRetryLogging()
Enable logging driver retries at the WARN level.
Declaration
public TBuilder WithRetryLogging()
Returns
Type | Description |
---|---|
TBuilder | This builder object. |
WithSerializer(ISerializer)
Specify the serializer that should be used to serialize and deserialize Ion data.
Declaration
public TBuilder WithSerializer(ISerializer serializer)
Parameters
Type | Name | Description |
---|---|---|
ISerializer | serializer | The serializer to create the driver with. |
Returns
Type | Description |
---|---|
TBuilder | This builder object. |