public class AWSCodeCommitAsyncClient extends AWSCodeCommitClient implements AWSCodeCommitAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
This is the AWS CodeCommit API Reference. This reference provides descriptions of the AWS CodeCommit API.
You can use the AWS CodeCommit API to work with the following objects:
For information about how to use AWS CodeCommit, see the AWS CodeCommit User Guide.
jsonErrorUnmarshallers
client, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset
Constructor and Description |
---|
AWSCodeCommitAsyncClient()
Constructs a new asynchronous client to invoke service methods on
CodeCommit.
|
AWSCodeCommitAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
CodeCommit using the specified AWS account credentials.
|
AWSCodeCommitAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CodeCommit using the specified AWS account credentials, executor service,
and client configuration options.
|
AWSCodeCommitAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CodeCommit using the specified AWS account credentials and executor
service.
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
CodeCommit using the specified AWS account credentials provider.
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
CodeCommit using the provided AWS account credentials provider and client
configuration options.
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CodeCommit using the specified AWS account credentials provider, executor
service, and client configuration options.
|
AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
CodeCommit using the specified AWS account credentials provider and
executor service.
|
AWSCodeCommitAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
CodeCommit.
|
Modifier and Type | Method and Description |
---|---|
Future<BatchGetRepositoriesResult> |
batchGetRepositoriesAsync(BatchGetRepositoriesRequest batchGetRepositoriesRequest)
Gets information about one or more repositories.
|
Future<BatchGetRepositoriesResult> |
batchGetRepositoriesAsync(BatchGetRepositoriesRequest batchGetRepositoriesRequest,
AsyncHandler<BatchGetRepositoriesRequest,BatchGetRepositoriesResult> asyncHandler)
Gets information about one or more repositories.
|
Future<Void> |
createBranchAsync(CreateBranchRequest createBranchRequest)
Creates a new branch in a repository and points the branch to a commit.
|
Future<Void> |
createBranchAsync(CreateBranchRequest createBranchRequest,
AsyncHandler<CreateBranchRequest,Void> asyncHandler)
Creates a new branch in a repository and points the branch to a commit.
|
Future<CreateRepositoryResult> |
createRepositoryAsync(CreateRepositoryRequest createRepositoryRequest)
Creates a new, empty repository.
|
Future<CreateRepositoryResult> |
createRepositoryAsync(CreateRepositoryRequest createRepositoryRequest,
AsyncHandler<CreateRepositoryRequest,CreateRepositoryResult> asyncHandler)
Creates a new, empty repository.
|
Future<DeleteRepositoryResult> |
deleteRepositoryAsync(DeleteRepositoryRequest deleteRepositoryRequest)
Deletes a repository.
|
Future<DeleteRepositoryResult> |
deleteRepositoryAsync(DeleteRepositoryRequest deleteRepositoryRequest,
AsyncHandler<DeleteRepositoryRequest,DeleteRepositoryResult> asyncHandler)
Deletes a repository.
|
Future<GetBranchResult> |
getBranchAsync(GetBranchRequest getBranchRequest)
Retrieves information about a repository branch, including its name and
the last commit ID.
|
Future<GetBranchResult> |
getBranchAsync(GetBranchRequest getBranchRequest,
AsyncHandler<GetBranchRequest,GetBranchResult> asyncHandler)
Retrieves information about a repository branch, including its name and
the last commit ID.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async
requests.
|
Future<GetRepositoryResult> |
getRepositoryAsync(GetRepositoryRequest getRepositoryRequest)
Gets information about a repository.
|
Future<GetRepositoryResult> |
getRepositoryAsync(GetRepositoryRequest getRepositoryRequest,
AsyncHandler<GetRepositoryRequest,GetRepositoryResult> asyncHandler)
Gets information about a repository.
|
Future<ListBranchesResult> |
listBranchesAsync(ListBranchesRequest listBranchesRequest)
Gets information about one or more branches in a repository.
|
Future<ListBranchesResult> |
listBranchesAsync(ListBranchesRequest listBranchesRequest,
AsyncHandler<ListBranchesRequest,ListBranchesResult> asyncHandler)
Gets information about one or more branches in a repository.
|
Future<ListRepositoriesResult> |
listRepositoriesAsync(ListRepositoriesRequest listRepositoriesRequest)
Gets information about one or more repositories.
|
Future<ListRepositoriesResult> |
listRepositoriesAsync(ListRepositoriesRequest listRepositoriesRequest,
AsyncHandler<ListRepositoriesRequest,ListRepositoriesResult> asyncHandler)
Gets information about one or more repositories.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<Void> |
updateDefaultBranchAsync(UpdateDefaultBranchRequest updateDefaultBranchRequest)
Sets or changes the default branch name for the specified repository.
|
Future<Void> |
updateDefaultBranchAsync(UpdateDefaultBranchRequest updateDefaultBranchRequest,
AsyncHandler<UpdateDefaultBranchRequest,Void> asyncHandler)
Sets or changes the default branch name for the specified repository.
|
Future<Void> |
updateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest)
Sets or changes the comment or description for a repository.
|
Future<Void> |
updateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest,
AsyncHandler<UpdateRepositoryDescriptionRequest,Void> asyncHandler)
Sets or changes the comment or description for a repository.
|
Future<Void> |
updateRepositoryNameAsync(UpdateRepositoryNameRequest updateRepositoryNameRequest)
Renames a repository.
|
Future<Void> |
updateRepositoryNameAsync(UpdateRepositoryNameRequest updateRepositoryNameRequest,
AsyncHandler<UpdateRepositoryNameRequest,Void> asyncHandler)
Renames a repository.
|
batchGetRepositories, createBranch, createRepository, deleteRepository, getBranch, getCachedResponseMetadata, getRepository, listBranches, listRepositories, updateDefaultBranch, updateRepositoryDescription, updateRepositoryName
addRequestHandler, addRequestHandler, beforeMarshalling, configSigner, configSigner, configureRegion, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
batchGetRepositories, createBranch, createRepository, deleteRepository, getBranch, getCachedResponseMetadata, getRepository, listBranches, listRepositories, setEndpoint, setRegion, updateDefaultBranch, updateRepositoryDescription, updateRepositoryName
public AWSCodeCommitAsyncClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
public AWSCodeCommitAsyncClient(ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client
connects to CodeCommit (ex: proxy settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSCodeCommitAsyncClient(AWSCredentials awsCredentials)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.Executors.newFixedThreadPool(int)
public AWSCodeCommitAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AWSCodeCommitAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when
authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing
a number of threads equal to the maximum number of concurrent connections
configured via ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be
executed.public AWSCodeCommitAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to
authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings,
etc).executorService
- The executor service by which all asynchronous requests will be
executed.public ExecutorService getExecutorService()
public void shutdown()
getExecutorService().shutdown()
followed by
getExecutorService().awaitTermination()
prior to calling this
method.shutdown
in interface AWSCodeCommit
shutdown
in class AmazonWebServiceClient
public Future<BatchGetRepositoriesResult> batchGetRepositoriesAsync(BatchGetRepositoriesRequest batchGetRepositoriesRequest)
AWSCodeCommitAsync
Gets information about one or more repositories.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
batchGetRepositoriesAsync
in interface AWSCodeCommitAsync
batchGetRepositoriesRequest
- Represents the input of a batch get repositories operation.public Future<BatchGetRepositoriesResult> batchGetRepositoriesAsync(BatchGetRepositoriesRequest batchGetRepositoriesRequest, AsyncHandler<BatchGetRepositoriesRequest,BatchGetRepositoriesResult> asyncHandler)
AWSCodeCommitAsync
Gets information about one or more repositories.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
batchGetRepositoriesAsync
in interface AWSCodeCommitAsync
batchGetRepositoriesRequest
- Represents the input of a batch get repositories operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> createBranchAsync(CreateBranchRequest createBranchRequest)
AWSCodeCommitAsync
Creates a new branch in a repository and points the branch to a commit.
createBranchAsync
in interface AWSCodeCommitAsync
createBranchRequest
- Represents the input of a create branch operation.public Future<Void> createBranchAsync(CreateBranchRequest createBranchRequest, AsyncHandler<CreateBranchRequest,Void> asyncHandler)
AWSCodeCommitAsync
Creates a new branch in a repository and points the branch to a commit.
createBranchAsync
in interface AWSCodeCommitAsync
createBranchRequest
- Represents the input of a create branch operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<CreateRepositoryResult> createRepositoryAsync(CreateRepositoryRequest createRepositoryRequest)
AWSCodeCommitAsync
Creates a new, empty repository.
createRepositoryAsync
in interface AWSCodeCommitAsync
createRepositoryRequest
- Represents the input of a create repository operation.public Future<CreateRepositoryResult> createRepositoryAsync(CreateRepositoryRequest createRepositoryRequest, AsyncHandler<CreateRepositoryRequest,CreateRepositoryResult> asyncHandler)
AWSCodeCommitAsync
Creates a new, empty repository.
createRepositoryAsync
in interface AWSCodeCommitAsync
createRepositoryRequest
- Represents the input of a create repository operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<DeleteRepositoryResult> deleteRepositoryAsync(DeleteRepositoryRequest deleteRepositoryRequest)
AWSCodeCommitAsync
Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.
deleteRepositoryAsync
in interface AWSCodeCommitAsync
deleteRepositoryRequest
- Represents the input of a delete repository operation.public Future<DeleteRepositoryResult> deleteRepositoryAsync(DeleteRepositoryRequest deleteRepositoryRequest, AsyncHandler<DeleteRepositoryRequest,DeleteRepositoryResult> asyncHandler)
AWSCodeCommitAsync
Deletes a repository. If a specified repository was already deleted, a null repository ID will be returned.
deleteRepositoryAsync
in interface AWSCodeCommitAsync
deleteRepositoryRequest
- Represents the input of a delete repository operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetBranchResult> getBranchAsync(GetBranchRequest getBranchRequest)
AWSCodeCommitAsync
Retrieves information about a repository branch, including its name and the last commit ID.
getBranchAsync
in interface AWSCodeCommitAsync
getBranchRequest
- Represents the input of a get branch operation.public Future<GetBranchResult> getBranchAsync(GetBranchRequest getBranchRequest, AsyncHandler<GetBranchRequest,GetBranchResult> asyncHandler)
AWSCodeCommitAsync
Retrieves information about a repository branch, including its name and the last commit ID.
getBranchAsync
in interface AWSCodeCommitAsync
getBranchRequest
- Represents the input of a get branch operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<GetRepositoryResult> getRepositoryAsync(GetRepositoryRequest getRepositoryRequest)
AWSCodeCommitAsync
Gets information about a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
getRepositoryAsync
in interface AWSCodeCommitAsync
getRepositoryRequest
- Represents the input of a get repository operation.public Future<GetRepositoryResult> getRepositoryAsync(GetRepositoryRequest getRepositoryRequest, AsyncHandler<GetRepositoryRequest,GetRepositoryResult> asyncHandler)
AWSCodeCommitAsync
Gets information about a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
getRepositoryAsync
in interface AWSCodeCommitAsync
getRepositoryRequest
- Represents the input of a get repository operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListBranchesResult> listBranchesAsync(ListBranchesRequest listBranchesRequest)
AWSCodeCommitAsync
Gets information about one or more branches in a repository.
listBranchesAsync
in interface AWSCodeCommitAsync
listBranchesRequest
- Represents the input of a list branches operation.public Future<ListBranchesResult> listBranchesAsync(ListBranchesRequest listBranchesRequest, AsyncHandler<ListBranchesRequest,ListBranchesResult> asyncHandler)
AWSCodeCommitAsync
Gets information about one or more branches in a repository.
listBranchesAsync
in interface AWSCodeCommitAsync
listBranchesRequest
- Represents the input of a list branches operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<ListRepositoriesResult> listRepositoriesAsync(ListRepositoriesRequest listRepositoriesRequest)
AWSCodeCommitAsync
Gets information about one or more repositories.
listRepositoriesAsync
in interface AWSCodeCommitAsync
listRepositoriesRequest
- Represents the input of a list repositories operation.public Future<ListRepositoriesResult> listRepositoriesAsync(ListRepositoriesRequest listRepositoriesRequest, AsyncHandler<ListRepositoriesRequest,ListRepositoriesResult> asyncHandler)
AWSCodeCommitAsync
Gets information about one or more repositories.
listRepositoriesAsync
in interface AWSCodeCommitAsync
listRepositoriesRequest
- Represents the input of a list repositories operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> updateDefaultBranchAsync(UpdateDefaultBranchRequest updateDefaultBranchRequest)
AWSCodeCommitAsync
Sets or changes the default branch name for the specified repository.
updateDefaultBranchAsync
in interface AWSCodeCommitAsync
updateDefaultBranchRequest
- Represents the input of an update default branch operation.public Future<Void> updateDefaultBranchAsync(UpdateDefaultBranchRequest updateDefaultBranchRequest, AsyncHandler<UpdateDefaultBranchRequest,Void> asyncHandler)
AWSCodeCommitAsync
Sets or changes the default branch name for the specified repository.
updateDefaultBranchAsync
in interface AWSCodeCommitAsync
updateDefaultBranchRequest
- Represents the input of an update default branch operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> updateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest)
AWSCodeCommitAsync
Sets or changes the comment or description for a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
updateRepositoryDescriptionAsync
in interface AWSCodeCommitAsync
updateRepositoryDescriptionRequest
- Represents the input of an update repository description
operation.public Future<Void> updateRepositoryDescriptionAsync(UpdateRepositoryDescriptionRequest updateRepositoryDescriptionRequest, AsyncHandler<UpdateRepositoryDescriptionRequest,Void> asyncHandler)
AWSCodeCommitAsync
Sets or changes the comment or description for a repository.
The description field for a repository accepts all HTML characters and all valid Unicode characters. Applications that do not HTML-encode the description and display it in a web page could expose users to potentially malicious code. Make sure that you HTML-encode the description field in any application that uses this API to display the repository description on a web page.
updateRepositoryDescriptionAsync
in interface AWSCodeCommitAsync
updateRepositoryDescriptionRequest
- Represents the input of an update repository description
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.public Future<Void> updateRepositoryNameAsync(UpdateRepositoryNameRequest updateRepositoryNameRequest)
AWSCodeCommitAsync
Renames a repository.
updateRepositoryNameAsync
in interface AWSCodeCommitAsync
updateRepositoryNameRequest
- Represents the input of an update repository description
operation.public Future<Void> updateRepositoryNameAsync(UpdateRepositoryNameRequest updateRepositoryNameRequest, AsyncHandler<UpdateRepositoryNameRequest,Void> asyncHandler)
AWSCodeCommitAsync
Renames a repository.
updateRepositoryNameAsync
in interface AWSCodeCommitAsync
updateRepositoryNameRequest
- Represents the input of an update repository description
operation.asyncHandler
- Asynchronous callback handler for events in the lifecycle of the
request. Users can provide an implementation of the callback
methods in this interface to receive notification of successful or
unsuccessful completion of the operation.Copyright © 2015. All rights reserved.