GRPC Core  18.0.0
Public Member Functions
grpc_core::Resolver::ResultHandler Class Referenceabstract

A proxy object used by the resolver to return results to the client channel. More...

#include <resolver.h>

Public Member Functions

virtual ~ResultHandler ()
 
virtual void ReturnResult (Result result)=0
 Returns a result to the channel. More...
 
virtual void ReturnError (grpc_error_handle error)=0
 Returns a transient error to the channel. More...
 

Detailed Description

A proxy object used by the resolver to return results to the client channel.

Constructor & Destructor Documentation

◆ ~ResultHandler()

virtual grpc_core::Resolver::ResultHandler::~ResultHandler ( )
inlinevirtual

Member Function Documentation

◆ ReturnError()

virtual void grpc_core::Resolver::ResultHandler::ReturnError ( grpc_error_handle  error)
pure virtual

Returns a transient error to the channel.

If the resolver does not set the GRPC_ERROR_INT_GRPC_STATUS attribute on the error, calls will be failed with status UNKNOWN.

Implemented in grpc_core::ClientChannel::ResolverResultHandler.

◆ ReturnResult()

virtual void grpc_core::Resolver::ResultHandler::ReturnResult ( Result  result)
pure virtual

Returns a result to the channel.

Takes ownership of result.args.

Implemented in grpc_core::ClientChannel::ResolverResultHandler.


The documentation for this class was generated from the following file: