AWS IoT Device SDK C++ v2
1.38.0
AWS IoT Device SDK C++ v2
|
#include <HttpConnectionManager.h>
Public Member Functions | |
~HttpClientConnectionManager () | |
bool | AcquireConnection (const OnClientConnectionAvailable &onClientConnectionAvailable) noexcept |
std::future< void > | InitiateShutdown () noexcept |
Static Public Member Functions | |
static std::shared_ptr< HttpClientConnectionManager > | NewClientConnectionManager (const HttpClientConnectionManagerOptions &connectionManagerOptions, Allocator *allocator=ApiAllocator()) noexcept |
Friends | |
class | ManagedConnection |
Manages a pool of connections to a specific endpoint using the same socket and tls options.
Aws::Crt::Http::HttpClientConnectionManager::~HttpClientConnectionManager | ( | ) |
|
noexcept |
Acquires a connection from the pool. onClientConnectionAvailable will be invoked upon an available connection. Returns true if the connection request was successfully queued, returns false if it failed. On failure, onClientConnectionAvailable will not be invoked. After receiving a connection, it will automatically be cleaned up when your last reference to the shared_ptr is released.
onClientConnectionAvailable | callback to invoke when a connection becomes available or the acquisition attempt terminates |
|
noexcept |
Starts shutdown of the connection manager. Returns a future to the connection manager's shutdown process. If EnableBlockingDestruct was enabled on the connection manager options, calling get() on the returned future will block until the last connection is released. If the option is not set, get() will immediately return.
|
staticnoexcept |
Factory function for connection managers
connectionManagerOptions | connection manager configuration data |
allocator | allocator to use |
|
friend |