#include <polling_resolver.h>
Definition at line 46 of file polling_resolver.h.
◆ PollingResolver()
◆ ~PollingResolver()
grpc_core::PollingResolver::~PollingResolver |
( |
| ) |
|
|
override |
◆ authority()
const std::string& grpc_core::PollingResolver::authority |
( |
| ) |
const |
|
inlineprotected |
◆ channel_args()
◆ interested_parties()
◆ MaybeStartResolvingLocked()
void grpc_core::PollingResolver::MaybeStartResolvingLocked |
( |
| ) |
|
|
private |
◆ name_to_resolve()
const std::string& grpc_core::PollingResolver::name_to_resolve |
( |
| ) |
const |
|
inlineprotected |
◆ OnNextResolution()
void grpc_core::PollingResolver::OnNextResolution |
( |
void * |
arg, |
|
|
grpc_error_handle |
error |
|
) |
| |
|
staticprivate |
◆ OnNextResolutionLocked()
◆ OnRequestComplete()
void grpc_core::PollingResolver::OnRequestComplete |
( |
Result |
result | ) |
|
|
protected |
◆ OnRequestCompleteLocked()
void grpc_core::PollingResolver::OnRequestCompleteLocked |
( |
Result |
result | ) |
|
|
private |
◆ RequestReresolutionLocked()
void grpc_core::PollingResolver::RequestReresolutionLocked |
( |
| ) |
|
|
overridevirtual |
Asks the resolver to obtain an updated resolver result, if applicable.
This is useful for pull-based implementations to decide when to re-resolve. However, the implementation is not required to re-resolve immediately upon receiving this call; it may instead elect to delay based on some configured minimum time between queries, to avoid hammering the name service with queries.
For push-based implementations, this may be a no-op.
Note: Implementations must not invoke any method on the ResultHandler from within this call.
Reimplemented from grpc_core::Resolver.
Definition at line 71 of file polling_resolver.cc.
◆ ResetBackoffLocked()
void grpc_core::PollingResolver::ResetBackoffLocked |
( |
| ) |
|
|
overridevirtual |
Resets the re-resolution backoff, if any. This needs to be implemented only by pull-based implementations; for push-based implementations, it will be a no-op.
Reimplemented from grpc_core::Resolver.
Definition at line 77 of file polling_resolver.cc.
◆ ShutdownLocked()
void grpc_core::PollingResolver::ShutdownLocked |
( |
| ) |
|
|
overridevirtual |
◆ StartLocked()
void grpc_core::PollingResolver::StartLocked |
( |
| ) |
|
|
overridevirtual |
◆ StartRequest()
◆ StartResolvingLocked()
void grpc_core::PollingResolver::StartResolvingLocked |
( |
| ) |
|
|
private |
◆ authority_
std::string grpc_core::PollingResolver::authority_ |
|
private |
◆ backoff_
BackOff grpc_core::PollingResolver::backoff_ |
|
private |
◆ channel_args_
◆ have_next_resolution_timer_
bool grpc_core::PollingResolver::have_next_resolution_timer_ = false |
|
private |
◆ interested_parties_
◆ last_resolution_timestamp_
◆ min_time_between_resolutions_
Duration grpc_core::PollingResolver::min_time_between_resolutions_ |
|
private |
◆ name_to_resolve_
std::string grpc_core::PollingResolver::name_to_resolve_ |
|
private |
◆ next_resolution_timer_
grpc_timer grpc_core::PollingResolver::next_resolution_timer_ |
|
private |
◆ on_next_resolution_
grpc_closure grpc_core::PollingResolver::on_next_resolution_ |
|
private |
◆ request_
◆ result_handler_
std::unique_ptr<ResultHandler> grpc_core::PollingResolver::result_handler_ |
|
private |
◆ shutdown_
bool grpc_core::PollingResolver::shutdown_ = false |
|
private |
◆ tracer_
TraceFlag* grpc_core::PollingResolver::tracer_ |
|
private |
◆ work_serializer_
std::shared_ptr<WorkSerializer> grpc_core::PollingResolver::work_serializer_ |
|
private |
The documentation for this class was generated from the following files: