@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AmazonManagedBlockchainAsyncClient extends AmazonManagedBlockchainClient implements AmazonManagedBlockchainAsync
AsyncHandler
can be used to receive
notification when an asynchronous operation completes.
Amazon Managed Blockchain is a fully managed service for creating and managing blockchain networks using open source frameworks. Blockchain allows you to build applications where multiple parties can securely and transparently run transactions and share data without the need for a trusted, central authority. Currently, Managed Blockchain supports the Hyperledger Fabric open source framework.
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Modifier and Type | Method and Description |
---|---|
static AmazonManagedBlockchainAsyncClientBuilder |
asyncBuilder() |
Future<CreateMemberResult> |
createMemberAsync(CreateMemberRequest request)
Creates a member within a Managed Blockchain network.
|
Future<CreateMemberResult> |
createMemberAsync(CreateMemberRequest request,
AsyncHandler<CreateMemberRequest,CreateMemberResult> asyncHandler)
Creates a member within a Managed Blockchain network.
|
Future<CreateNetworkResult> |
createNetworkAsync(CreateNetworkRequest request)
Creates a new blockchain network using Amazon Managed Blockchain.
|
Future<CreateNetworkResult> |
createNetworkAsync(CreateNetworkRequest request,
AsyncHandler<CreateNetworkRequest,CreateNetworkResult> asyncHandler)
Creates a new blockchain network using Amazon Managed Blockchain.
|
Future<CreateNodeResult> |
createNodeAsync(CreateNodeRequest request)
Creates a peer node in a member.
|
Future<CreateNodeResult> |
createNodeAsync(CreateNodeRequest request,
AsyncHandler<CreateNodeRequest,CreateNodeResult> asyncHandler)
Creates a peer node in a member.
|
Future<CreateProposalResult> |
createProposalAsync(CreateProposalRequest request)
Creates a proposal for a change to the network that other members of the network can vote on, for example, a
proposal to add a new member to the network.
|
Future<CreateProposalResult> |
createProposalAsync(CreateProposalRequest request,
AsyncHandler<CreateProposalRequest,CreateProposalResult> asyncHandler)
Creates a proposal for a change to the network that other members of the network can vote on, for example, a
proposal to add a new member to the network.
|
Future<DeleteMemberResult> |
deleteMemberAsync(DeleteMemberRequest request)
Deletes a member.
|
Future<DeleteMemberResult> |
deleteMemberAsync(DeleteMemberRequest request,
AsyncHandler<DeleteMemberRequest,DeleteMemberResult> asyncHandler)
Deletes a member.
|
Future<DeleteNodeResult> |
deleteNodeAsync(DeleteNodeRequest request)
Deletes a peer node from a member that your AWS account owns.
|
Future<DeleteNodeResult> |
deleteNodeAsync(DeleteNodeRequest request,
AsyncHandler<DeleteNodeRequest,DeleteNodeResult> asyncHandler)
Deletes a peer node from a member that your AWS account owns.
|
ExecutorService |
getExecutorService()
Returns the executor service used by this client to execute async requests.
|
Future<GetMemberResult> |
getMemberAsync(GetMemberRequest request)
Returns detailed information about a member.
|
Future<GetMemberResult> |
getMemberAsync(GetMemberRequest request,
AsyncHandler<GetMemberRequest,GetMemberResult> asyncHandler)
Returns detailed information about a member.
|
Future<GetNetworkResult> |
getNetworkAsync(GetNetworkRequest request)
Returns detailed information about a network.
|
Future<GetNetworkResult> |
getNetworkAsync(GetNetworkRequest request,
AsyncHandler<GetNetworkRequest,GetNetworkResult> asyncHandler)
Returns detailed information about a network.
|
Future<GetNodeResult> |
getNodeAsync(GetNodeRequest request)
Returns detailed information about a peer node.
|
Future<GetNodeResult> |
getNodeAsync(GetNodeRequest request,
AsyncHandler<GetNodeRequest,GetNodeResult> asyncHandler)
Returns detailed information about a peer node.
|
Future<GetProposalResult> |
getProposalAsync(GetProposalRequest request)
Returns detailed information about a proposal.
|
Future<GetProposalResult> |
getProposalAsync(GetProposalRequest request,
AsyncHandler<GetProposalRequest,GetProposalResult> asyncHandler)
Returns detailed information about a proposal.
|
Future<ListInvitationsResult> |
listInvitationsAsync(ListInvitationsRequest request)
Returns a listing of all invitations made on the specified network.
|
Future<ListInvitationsResult> |
listInvitationsAsync(ListInvitationsRequest request,
AsyncHandler<ListInvitationsRequest,ListInvitationsResult> asyncHandler)
Returns a listing of all invitations made on the specified network.
|
Future<ListMembersResult> |
listMembersAsync(ListMembersRequest request)
Returns a listing of the members in a network and properties of their configurations.
|
Future<ListMembersResult> |
listMembersAsync(ListMembersRequest request,
AsyncHandler<ListMembersRequest,ListMembersResult> asyncHandler)
Returns a listing of the members in a network and properties of their configurations.
|
Future<ListNetworksResult> |
listNetworksAsync(ListNetworksRequest request)
Returns information about the networks in which the current AWS account has members.
|
Future<ListNetworksResult> |
listNetworksAsync(ListNetworksRequest request,
AsyncHandler<ListNetworksRequest,ListNetworksResult> asyncHandler)
Returns information about the networks in which the current AWS account has members.
|
Future<ListNodesResult> |
listNodesAsync(ListNodesRequest request)
Returns information about the nodes within a network.
|
Future<ListNodesResult> |
listNodesAsync(ListNodesRequest request,
AsyncHandler<ListNodesRequest,ListNodesResult> asyncHandler)
Returns information about the nodes within a network.
|
Future<ListProposalsResult> |
listProposalsAsync(ListProposalsRequest request)
Returns a listing of proposals for the network.
|
Future<ListProposalsResult> |
listProposalsAsync(ListProposalsRequest request,
AsyncHandler<ListProposalsRequest,ListProposalsResult> asyncHandler)
Returns a listing of proposals for the network.
|
Future<ListProposalVotesResult> |
listProposalVotesAsync(ListProposalVotesRequest request)
Returns the listing of votes for a specified proposal, including the value of each vote and the unique identifier
of the member that cast the vote.
|
Future<ListProposalVotesResult> |
listProposalVotesAsync(ListProposalVotesRequest request,
AsyncHandler<ListProposalVotesRequest,ListProposalVotesResult> asyncHandler)
Returns the listing of votes for a specified proposal, including the value of each vote and the unique identifier
of the member that cast the vote.
|
Future<RejectInvitationResult> |
rejectInvitationAsync(RejectInvitationRequest request)
Rejects an invitation to join a network.
|
Future<RejectInvitationResult> |
rejectInvitationAsync(RejectInvitationRequest request,
AsyncHandler<RejectInvitationRequest,RejectInvitationResult> asyncHandler)
Rejects an invitation to join a network.
|
void |
shutdown()
Shuts down the client, releasing all managed resources.
|
Future<VoteOnProposalResult> |
voteOnProposalAsync(VoteOnProposalRequest request)
Casts a vote for a specified
ProposalId on behalf of a member. |
Future<VoteOnProposalResult> |
voteOnProposalAsync(VoteOnProposalRequest request,
AsyncHandler<VoteOnProposalRequest,VoteOnProposalResult> asyncHandler)
Casts a vote for a specified
ProposalId on behalf of a member. |
builder, createMember, createNetwork, createNode, createProposal, deleteMember, deleteNode, getCachedResponseMetadata, getMember, getNetwork, getNode, getProposal, listInvitations, listMembers, listNetworks, listNodes, listProposals, listProposalVotes, rejectInvitation, voteOnProposal
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createMember, createNetwork, createNode, createProposal, deleteMember, deleteNode, getCachedResponseMetadata, getMember, getNetwork, getNode, getProposal, listInvitations, listMembers, listNetworks, listNodes, listProposals, listProposalVotes, rejectInvitation, voteOnProposal
public static AmazonManagedBlockchainAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateMemberResult> createMemberAsync(CreateMemberRequest request)
AmazonManagedBlockchainAsync
Creates a member within a Managed Blockchain network.
createMemberAsync
in interface AmazonManagedBlockchainAsync
public Future<CreateMemberResult> createMemberAsync(CreateMemberRequest request, AsyncHandler<CreateMemberRequest,CreateMemberResult> asyncHandler)
AmazonManagedBlockchainAsync
Creates a member within a Managed Blockchain network.
createMemberAsync
in interface AmazonManagedBlockchainAsync
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<CreateNetworkResult> createNetworkAsync(CreateNetworkRequest request)
AmazonManagedBlockchainAsync
Creates a new blockchain network using Amazon Managed Blockchain.
createNetworkAsync
in interface AmazonManagedBlockchainAsync
public Future<CreateNetworkResult> createNetworkAsync(CreateNetworkRequest request, AsyncHandler<CreateNetworkRequest,CreateNetworkResult> asyncHandler)
AmazonManagedBlockchainAsync
Creates a new blockchain network using Amazon Managed Blockchain.
createNetworkAsync
in interface AmazonManagedBlockchainAsync
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<CreateNodeResult> createNodeAsync(CreateNodeRequest request)
AmazonManagedBlockchainAsync
Creates a peer node in a member.
createNodeAsync
in interface AmazonManagedBlockchainAsync
public Future<CreateNodeResult> createNodeAsync(CreateNodeRequest request, AsyncHandler<CreateNodeRequest,CreateNodeResult> asyncHandler)
AmazonManagedBlockchainAsync
Creates a peer node in a member.
createNodeAsync
in interface AmazonManagedBlockchainAsync
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<CreateProposalResult> createProposalAsync(CreateProposalRequest request)
AmazonManagedBlockchainAsync
Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network. Any member can create a proposal.
createProposalAsync
in interface AmazonManagedBlockchainAsync
public Future<CreateProposalResult> createProposalAsync(CreateProposalRequest request, AsyncHandler<CreateProposalRequest,CreateProposalResult> asyncHandler)
AmazonManagedBlockchainAsync
Creates a proposal for a change to the network that other members of the network can vote on, for example, a proposal to add a new member to the network. Any member can create a proposal.
createProposalAsync
in interface AmazonManagedBlockchainAsync
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<DeleteMemberResult> deleteMemberAsync(DeleteMemberRequest request)
AmazonManagedBlockchainAsync
Deletes a member. Deleting a member removes the member and all associated resources from the network.
DeleteMember
can only be called for a specified MemberId
if the principal performing
the action is associated with the AWS account that owns the member. In all other cases, the
DeleteMember
action is carried out as the result of an approved proposal to remove a member. If
MemberId
is the last member in a network specified by the last AWS account, the network is deleted
also.
deleteMemberAsync
in interface AmazonManagedBlockchainAsync
public Future<DeleteMemberResult> deleteMemberAsync(DeleteMemberRequest request, AsyncHandler<DeleteMemberRequest,DeleteMemberResult> asyncHandler)
AmazonManagedBlockchainAsync
Deletes a member. Deleting a member removes the member and all associated resources from the network.
DeleteMember
can only be called for a specified MemberId
if the principal performing
the action is associated with the AWS account that owns the member. In all other cases, the
DeleteMember
action is carried out as the result of an approved proposal to remove a member. If
MemberId
is the last member in a network specified by the last AWS account, the network is deleted
also.
deleteMemberAsync
in interface AmazonManagedBlockchainAsync
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<DeleteNodeResult> deleteNodeAsync(DeleteNodeRequest request)
AmazonManagedBlockchainAsync
Deletes a peer node from a member that your AWS account owns. All data on the node is lost and cannot be recovered.
deleteNodeAsync
in interface AmazonManagedBlockchainAsync
public Future<DeleteNodeResult> deleteNodeAsync(DeleteNodeRequest request, AsyncHandler<DeleteNodeRequest,DeleteNodeResult> asyncHandler)
AmazonManagedBlockchainAsync
Deletes a peer node from a member that your AWS account owns. All data on the node is lost and cannot be recovered.
deleteNodeAsync
in interface AmazonManagedBlockchainAsync
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<GetMemberResult> getMemberAsync(GetMemberRequest request)
AmazonManagedBlockchainAsync
Returns detailed information about a member.
getMemberAsync
in interface AmazonManagedBlockchainAsync
public Future<GetMemberResult> getMemberAsync(GetMemberRequest request, AsyncHandler<GetMemberRequest,GetMemberResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns detailed information about a member.
getMemberAsync
in interface AmazonManagedBlockchainAsync
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<GetNetworkResult> getNetworkAsync(GetNetworkRequest request)
AmazonManagedBlockchainAsync
Returns detailed information about a network.
getNetworkAsync
in interface AmazonManagedBlockchainAsync
public Future<GetNetworkResult> getNetworkAsync(GetNetworkRequest request, AsyncHandler<GetNetworkRequest,GetNetworkResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns detailed information about a network.
getNetworkAsync
in interface AmazonManagedBlockchainAsync
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<GetNodeResult> getNodeAsync(GetNodeRequest request)
AmazonManagedBlockchainAsync
Returns detailed information about a peer node.
getNodeAsync
in interface AmazonManagedBlockchainAsync
public Future<GetNodeResult> getNodeAsync(GetNodeRequest request, AsyncHandler<GetNodeRequest,GetNodeResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns detailed information about a peer node.
getNodeAsync
in interface AmazonManagedBlockchainAsync
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<GetProposalResult> getProposalAsync(GetProposalRequest request)
AmazonManagedBlockchainAsync
Returns detailed information about a proposal.
getProposalAsync
in interface AmazonManagedBlockchainAsync
public Future<GetProposalResult> getProposalAsync(GetProposalRequest request, AsyncHandler<GetProposalRequest,GetProposalResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns detailed information about a proposal.
getProposalAsync
in interface AmazonManagedBlockchainAsync
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<ListInvitationsResult> listInvitationsAsync(ListInvitationsRequest request)
AmazonManagedBlockchainAsync
Returns a listing of all invitations made on the specified network.
listInvitationsAsync
in interface AmazonManagedBlockchainAsync
public Future<ListInvitationsResult> listInvitationsAsync(ListInvitationsRequest request, AsyncHandler<ListInvitationsRequest,ListInvitationsResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns a listing of all invitations made on the specified network.
listInvitationsAsync
in interface AmazonManagedBlockchainAsync
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<ListMembersResult> listMembersAsync(ListMembersRequest request)
AmazonManagedBlockchainAsync
Returns a listing of the members in a network and properties of their configurations.
listMembersAsync
in interface AmazonManagedBlockchainAsync
public Future<ListMembersResult> listMembersAsync(ListMembersRequest request, AsyncHandler<ListMembersRequest,ListMembersResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns a listing of the members in a network and properties of their configurations.
listMembersAsync
in interface AmazonManagedBlockchainAsync
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<ListNetworksResult> listNetworksAsync(ListNetworksRequest request)
AmazonManagedBlockchainAsync
Returns information about the networks in which the current AWS account has members.
listNetworksAsync
in interface AmazonManagedBlockchainAsync
public Future<ListNetworksResult> listNetworksAsync(ListNetworksRequest request, AsyncHandler<ListNetworksRequest,ListNetworksResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns information about the networks in which the current AWS account has members.
listNetworksAsync
in interface AmazonManagedBlockchainAsync
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<ListNodesResult> listNodesAsync(ListNodesRequest request)
AmazonManagedBlockchainAsync
Returns information about the nodes within a network.
listNodesAsync
in interface AmazonManagedBlockchainAsync
public Future<ListNodesResult> listNodesAsync(ListNodesRequest request, AsyncHandler<ListNodesRequest,ListNodesResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns information about the nodes within a network.
listNodesAsync
in interface AmazonManagedBlockchainAsync
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<ListProposalVotesResult> listProposalVotesAsync(ListProposalVotesRequest request)
AmazonManagedBlockchainAsync
Returns the listing of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
listProposalVotesAsync
in interface AmazonManagedBlockchainAsync
public Future<ListProposalVotesResult> listProposalVotesAsync(ListProposalVotesRequest request, AsyncHandler<ListProposalVotesRequest,ListProposalVotesResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns the listing of votes for a specified proposal, including the value of each vote and the unique identifier of the member that cast the vote.
listProposalVotesAsync
in interface AmazonManagedBlockchainAsync
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<ListProposalsResult> listProposalsAsync(ListProposalsRequest request)
AmazonManagedBlockchainAsync
Returns a listing of proposals for the network.
listProposalsAsync
in interface AmazonManagedBlockchainAsync
public Future<ListProposalsResult> listProposalsAsync(ListProposalsRequest request, AsyncHandler<ListProposalsRequest,ListProposalsResult> asyncHandler)
AmazonManagedBlockchainAsync
Returns a listing of proposals for the network.
listProposalsAsync
in interface AmazonManagedBlockchainAsync
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<RejectInvitationResult> rejectInvitationAsync(RejectInvitationRequest request)
AmazonManagedBlockchainAsync
Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has received an invitation to create a member and join a network.
rejectInvitationAsync
in interface AmazonManagedBlockchainAsync
public Future<RejectInvitationResult> rejectInvitationAsync(RejectInvitationRequest request, AsyncHandler<RejectInvitationRequest,RejectInvitationResult> asyncHandler)
AmazonManagedBlockchainAsync
Rejects an invitation to join a network. This action can be called by a principal in an AWS account that has received an invitation to create a member and join a network.
rejectInvitationAsync
in interface AmazonManagedBlockchainAsync
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<VoteOnProposalResult> voteOnProposalAsync(VoteOnProposalRequest request)
AmazonManagedBlockchainAsync
Casts a vote for a specified ProposalId
on behalf of a member. The member to vote as, specified by
VoterMemberId
, must be in the same AWS account as the principal that calls the action.
voteOnProposalAsync
in interface AmazonManagedBlockchainAsync
public Future<VoteOnProposalResult> voteOnProposalAsync(VoteOnProposalRequest request, AsyncHandler<VoteOnProposalRequest,VoteOnProposalResult> asyncHandler)
AmazonManagedBlockchainAsync
Casts a vote for a specified ProposalId
on behalf of a member. The member to vote as, specified by
VoterMemberId
, must be in the same AWS account as the principal that calls the action.
voteOnProposalAsync
in interface AmazonManagedBlockchainAsync
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 void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AmazonManagedBlockchain
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.