Send feedback
Class AsyncConnection (2.23.0-rc)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
This interface defines virtual methods for each of the user-facing overload sets in AsyncClient
. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AsyncClient
.
To create a concrete instance, see MakeAsyncConnection()
.
For mocking, see storage_mocks::MockAsyncConnection
.
Functions
options() const
The options used to configure this connection, with any defaults applied.
Returns Type Description Options
InsertObject(InsertObjectParams)
Parameter Name Description p
InsertObjectParams
Returns Type Description future< StatusOr< storage::ObjectMetadata > >
ReadObject(ReadObjectParams)
Asynchronously create a stream to read object contents.
Parameter Name Description p
ReadObjectParams
Returns Type Description future< StatusOr< std::unique_ptr< AsyncReaderConnection > > >
ReadObjectRange(ReadObjectParams)
Read a range from an object returning all the contents.
Parameter Name Description p
ReadObjectParams
Returns Type Description future< StatusOr< ReadPayload > >
StartUnbufferedUpload(UploadParams)
Start (or resume) an upload configured for persistent sources.
Parameter Name Description p
UploadParams
Returns Type Description future< StatusOr< std::unique_ptr< storage_experimental::AsyncWriterConnection > > >
StartBufferedUpload(UploadParams)
Start (or resume) an upload configured for streaming sources.
Parameter Name Description p
UploadParams
Returns Type Description future< StatusOr< std::unique_ptr< storage_experimental::AsyncWriterConnection > > >
ComposeObject(ComposeObjectParams)
Create a new object by composing (concatenating) the contents of existing objects.
Parameter Name Description p
ComposeObjectParams
Returns Type Description future< StatusOr< storage::ObjectMetadata > >
DeleteObject(DeleteObjectParams)
Parameter Name Description p
DeleteObjectParams
Returns Type Description future< Status >
RewriteObject(RewriteObjectParams)
Parameter Name Description p
RewriteObjectParams
Returns Type Description std::shared_ptr< AsyncRewriterConnection >
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-05-02 UTC.
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
Need to tell us more?