Skip to content

ProducerRPCWorker

Runnable worker that drives async response writes on the producer completion queue.

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

Methods

ProducerRPCWorker

inline ProducerRPCWorker(ServerCompletionQueue *CQueue, int ID)

Parameters

  • CQueue (ServerCompletionQueue)

  • ID (int)


ProducerRPCWorker

inline ~ProducerRPCWorker()

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 producer completion events.

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