Skip to content

Template Class TConsumerRPCWorker

Template Class TConsumerRPCWorker

  • Defined in File ConsumerRPCBackend.h

Inheritance Relationships

Base Type

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

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h

Dependencies: TCallData


Public Functions

SymbolDetails
TConsumerRPCWorker
~TConsumerRPCWorker
InitInitialize the worker.
RunThis workers main method.
StartStart the worker.
StopShutdown the worker and it’s associated completion queue.
Exit

TConsumerRPCWorker

inline TConsumerRPCWorker(ServerCompletionQueue *CQueue)
#DirectionNameTypeDescription
1CQueueServerCompletionQueue *

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h


~TConsumerRPCWorker

inline ~TConsumerRPCWorker()

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h

Init

inline virtual bool Init()

Initialize the worker.

Returns:

True. Since initialization cannot fail

Attributes: inline, virtual

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h

Run

inline virtual uint32 Run()

This workers main method.

Returns:

A status code representing the result

Attributes: inline, virtual

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h

Start

inline void Start()

Start the worker.

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h

Stop

inline virtual void Stop()

Shutdown the worker and it’s associated completion queue.

Attributes: inline, virtual

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h

Exit

inline virtual void Exit()

Attributes: inline, virtual

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ConsumerRPCBackend.h


Public Members

SymbolDetails
Thread
Requests

Thread

FRunnableThread *Thread = nullptr

Requests

TQueue<RequestType> Requests = TQueue<RequestType>()