Skip to content

Template Class ExchangeRPCWorker

Template Class ExchangeRPCWorker

  • Defined in File ExchangeRPCBackend.h

Inheritance Relationships

Base Type

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

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

Dependencies: TExchangeCallData


Public Functions

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

ExchangeRPCWorker

inline ExchangeRPCWorker(ServerCompletionQueue *CQueue, int ID)
#DirectionNameTypeDescription
1CQueueServerCompletionQueue *
2IDint

Attributes: inline

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


~ExchangeRPCWorker

inline ~ExchangeRPCWorker()

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.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/ExchangeRPCBackend.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/ExchangeRPCBackend.h

Start

inline void Start()

Start the worker.

Attributes: inline

Source: Source/Schola/Protobuf/Public/ProtobufBackends/gRPC/ExchangeRPCBackend.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/ExchangeRPCBackend.h

Exit

inline virtual void Exit()

Unused.

Called when the thread completes

Attributes: inline, virtual

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


Public Members

SymbolDetails
Thread

Thread

FRunnableThread *Thread = nullptr