@Generated(value="software.amazon.awssdk:codegen") public interface QldbSessionClient extends SdkClient
builder() method.
The transactional data APIs for Amazon QLDB
| Modifier and Type | Field and Description |
|---|---|
static String |
SERVICE_NAME |
| Modifier and Type | Method and Description |
|---|---|
static QldbSessionClientBuilder |
builder()
Create a builder that can be used to configure and create a
QldbSessionClient. |
static QldbSessionClient |
create()
Create a
QldbSessionClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider. |
default SendCommandResponse |
sendCommand(Consumer<SendCommandRequest.Builder> sendCommandRequest)
Sends a command to an Amazon QLDB ledger.
|
default SendCommandResponse |
sendCommand(SendCommandRequest sendCommandRequest)
Sends a command to an Amazon QLDB ledger.
|
static ServiceMetadata |
serviceMetadata() |
serviceNameclosestatic final String SERVICE_NAME
static QldbSessionClient create()
QldbSessionClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider.static QldbSessionClientBuilder builder()
QldbSessionClient.default SendCommandResponse sendCommand(SendCommandRequest sendCommandRequest) throws BadRequestException, InvalidSessionException, OccConflictException, RateExceededException, LimitExceededException, AwsServiceException, SdkClientException, QldbSessionException
Sends a command to an Amazon QLDB ledger.
sendCommandRequest - BadRequestException - Returned if the request is malformed or contains an error such as an invalid parameter value or a missing
required parameter.InvalidSessionException - Returned if the session doesn't exist anymore because it timed-out or expired.OccConflictException - Returned when a transaction cannot be written to the journal due to a failure in the verification phase
of Optimistic Concurrency Control.RateExceededException - Returned when the rate of requests exceeds the allowed throughput.LimitExceededException - Returned if a resource limit such as number of active sessions is exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbSessionException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptiondefault SendCommandResponse sendCommand(Consumer<SendCommandRequest.Builder> sendCommandRequest) throws BadRequestException, InvalidSessionException, OccConflictException, RateExceededException, LimitExceededException, AwsServiceException, SdkClientException, QldbSessionException
Sends a command to an Amazon QLDB ledger.
This is a convenience which creates an instance of the SendCommandRequest.Builder avoiding the need to
create one manually via SendCommandRequest.builder()
sendCommandRequest - A Consumer that will call methods on SendCommandRequest.Builder to create a request.BadRequestException - Returned if the request is malformed or contains an error such as an invalid parameter value or a missing
required parameter.InvalidSessionException - Returned if the session doesn't exist anymore because it timed-out or expired.OccConflictException - Returned when a transaction cannot be written to the journal due to a failure in the verification phase
of Optimistic Concurrency Control.RateExceededException - Returned when the rate of requests exceeds the allowed throughput.LimitExceededException - Returned if a resource limit such as number of active sessions is exceeded.SdkException - Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for
catch all scenarios.SdkClientException - If any client side error occurs such as an IO related failure, failure to get credentials, etc.QldbSessionException - Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceExceptionstatic ServiceMetadata serviceMetadata()
Copyright © 2020. All rights reserved.