|
TEC
A lightweight C++ library enabling safe, efficient execution in multithreaded and concurrent systems.
|
Configuration parameters for gRPC client instances. More...
#include <tec_grpc.hpp>
Public Attributes | |
| std::string | addr_uri |
| See kDefaultAddrUri. | |
| MilliSec | connect_timeout |
| Timeout for client connection in milliseconds. | |
| MilliSec | close_timeout |
| Timeout for client closing in milliseconds. | |
| int | max_message_size |
| See kGrpcMaxMessageSize. | |
| int | compression_algorithm |
| GRPC_COMPRESS_NONE = 0, GRPC_COMPRESS_DEFLATE, GRPC_COMPRESS_GZIP, GRPC_COMPRESS_ALGORITHMS_COUNT. | |
Static Public Attributes | |
| static constexpr const char | kDefaultAddrUri [] = "127.0.0.1:50051" |
| Default client URI. | |
| static constexpr MilliSec | kConnectTimeout {Seconds{5}} |
| Default timeout for client connection. | |
| static constexpr MilliSec | kCloseTimeout {Seconds{10}} |
| Default timeout for client closing. | |
Configuration parameters for gRPC client instances.
Defines default timeouts and configuration options for gRPC client operations.
Default timeout for client closing.
Set to 10 seconds.
Default timeout for client connection.
Set to 5 seconds.
Default client URI.
Set to IPv4 localhost (127.0.0.1:50051).