GRPC Core
9.0.0
|
#include <grpc/support/port_platform.h>
#include "src/core/ext/filters/client_channel/backup_poller.h"
#include <grpc/grpc.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/sync.h>
#include "src/core/ext/filters/client_channel/client_channel.h"
#include "src/core/lib/gpr/string.h"
#include "src/core/lib/gprpp/global_config.h"
#include "src/core/lib/iomgr/error.h"
#include "src/core/lib/iomgr/iomgr.h"
#include "src/core/lib/iomgr/pollset.h"
#include "src/core/lib/iomgr/timer.h"
#include "src/core/lib/surface/channel.h"
#include "src/core/lib/surface/completion_queue.h"
Macros | |
#define | DEFAULT_POLL_INTERVAL_MS 5000 |
Functions | |
GPR_GLOBAL_CONFIG_DEFINE_INT32 (grpc_client_channel_backup_poll_interval_ms, 5000, "Declares the interval in ms between two backup polls on client channels. " "These polls are run in the timer thread so that gRPC can process " "connection failures while there is no active polling thread. " "They help reconnect disconnected client channels (mostly due to " "idleness), so that the next RPC on this channel won't fail. Set to 0 to " "turn off the backup polls.") | |
void | grpc_client_channel_global_init_backup_polling () |
void | grpc_client_channel_start_backup_polling (grpc_pollset_set *interested_parties) |
void | grpc_client_channel_stop_backup_polling (grpc_pollset_set *interested_parties) |
#define DEFAULT_POLL_INTERVAL_MS 5000 |
GPR_GLOBAL_CONFIG_DEFINE_INT32 | ( | grpc_client_channel_backup_poll_interval_ms | , |
5000 | , | ||
"Declares the interval in ms between two backup polls on client channels. " "These polls are run in the timer thread so that gRPC can process " "connection failures while there is no active polling thread. " "They help reconnect disconnected client channels | mostly due to " "idleness, | ||
so that the next RPC on this channel won 't fail. Set to 0 to " "turn off the backup polls." | |||
) |
void grpc_client_channel_global_init_backup_polling | ( | ) |
void grpc_client_channel_start_backup_polling | ( | grpc_pollset_set * | interested_parties | ) |
void grpc_client_channel_stop_backup_polling | ( | grpc_pollset_set * | interested_parties | ) |