Skip to content

ExchangeRPCWorker

Runnable worker for exchange-style RPC completion-queue processing.

template <class ServiceType, typename RequestType, typename ResponseType>
class ExchangeRPCWorker : public FRunnable

Methods

ExchangeRPCWorker

inline ExchangeRPCWorker(ServerCompletionQueue *CQueue, int ID)

Parameters

  • CQueue (ServerCompletionQueue)

  • ID (int)


ExchangeRPCWorker

inline ~ExchangeRPCWorker()

Init

inline virtual bool Init()

Initialize the worker.


Run

inline virtual uint32 Run()

This workers main method.


Start

inline void Start()

Start the worker.


Stop

inline virtual void Stop()

Shutdown the worker and it’s associated completion queue.


Exit

inline virtual void Exit()

Unused.

Attributes

Thread

FRunnableThread *Thread = nullptr

OS thread running Run() for exchange completion events.

Source: Source/ScholaProtobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.h