Send feedback
Class AsyncConnection (2.19.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.19.0 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
Returns Type Description Options
AsyncInsertObject(InsertObjectParams)
Parameter Name Description p
InsertObjectParams
Returns Type Description future< StatusOr< storage::ObjectMetadata > >
AsyncReadObject(ReadObjectParams)
Asynchronously create a stream to read object contents.
Parameter Name Description p
ReadObjectParams
Returns Type Description future< StatusOr< std::unique_ptr< AsyncReaderConnection > > >
AsyncReadObjectRange(ReadObjectParams)
Read a range from an object returning all the contents.
Parameter Name Description p
ReadObjectParams
Returns Type Description future< AsyncReadObjectRangeResponse >
AsyncWriteObject(WriteObjectParams)
Start (or resume) a streaming write.
Parameter Name Description p
WriteObjectParams
Returns Type Description future< StatusOr< std::unique_ptr< storage_experimental::AsyncWriterConnection > > >
AsyncComposeObject(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 > >
AsyncDeleteObject(DeleteObjectParams)
Parameter Name Description p
DeleteObjectParams
Returns Type Description future< Status >
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?