|
8 | 8 | #include <ydb-cpp-sdk/client/types/fatal_error_handlers/handlers.h> |
9 | 9 | #include <ydb-cpp-sdk/client/types/request_settings.h> |
10 | 10 | #include <ydb-cpp-sdk/client/types/status/status.h> |
| 11 | +#include <ydb-cpp-sdk/client/types/executor/executor.h> |
11 | 12 |
|
12 | 13 | #include <library/cpp/logger/backend.h> |
13 | 14 |
|
@@ -54,7 +55,7 @@ class TDriverConfig { |
54 | 55 | //! Enable Ssl. |
55 | 56 | //! caCerts - The buffer containing the PEM encoded root certificates for SSL/TLS connections. |
56 | 57 | //! If this parameter is empty, the default roots will be used. |
57 | | - TDriverConfig& UseSecureConnection(const std::string& caCerts = std::string()); |
| 58 | + TDriverConfig& UseSecureConnection(const std::string& caCerts = ""); |
58 | 59 | TDriverConfig& SetUsePerChannelTcpConnection(bool usePerChannel); |
59 | 60 | TDriverConfig& UseClientCertificate(const std::string& clientCert, const std::string& clientPrivateKey); |
60 | 61 |
|
@@ -107,8 +108,7 @@ class TDriverConfig { |
107 | 108 | //! Set policy for balancing |
108 | 109 | //! Params is a optionally field to set policy settings |
109 | 110 | //! default: EBalancingPolicy::UsePreferableLocation |
110 | | - TDriverConfig& SetBalancingPolicy(EBalancingPolicy policy, const std::string& params = std::string()); |
111 | | - |
| 111 | + TDriverConfig& SetBalancingPolicy(EBalancingPolicy policy, const std::string& params = ""); |
112 | 112 | //! Set grpc level keep alive. If keepalive ping was delayed more than given timeout |
113 | 113 | //! internal grpc routine fails request with TRANSIENT_FAILURE or TRANSPORT_UNAVAILABLE error |
114 | 114 | //! Note: this timeout should not be too small to prevent fail due to |
@@ -142,6 +142,11 @@ class TDriverConfig { |
142 | 142 |
|
143 | 143 | //! Log backend. |
144 | 144 | TDriverConfig& SetLog(std::unique_ptr<TLogBackend>&& log); |
| 145 | + |
| 146 | + //! Set executor for async responses. |
| 147 | + //! If not set, default executor will be used. |
| 148 | + TDriverConfig& SetExecutor(std::shared_ptr<IExecutor> executor); |
| 149 | + |
145 | 150 | private: |
146 | 151 | class TImpl; |
147 | 152 | std::shared_ptr<TImpl> Impl_; |
|
0 commit comments