Skip to content

Template Class TProducerRPCBackend

Template Class TProducerRPCBackend

  • Defined in File ProducerRPCBackend.h

Inheritance Relationships

Base Types

template <class ServiceType, typename RequestType, typename ResponseType>
class TProducerRPCBackend
: public TRPCBackend<ServiceType, RequestType, ResponseType>,
public IProducerBackend<ResponseType>

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

Dependencies: ProducerRPCWorker, TCallData, TRPCBackend


Public Functions

SymbolDetails
TProducerRPCBackend
~TProducerRPCBackend
PublishSend a message to the client.
InitializePerform any setup that happens prior to establishing any external connection.
Start
EstablishPerform any setup that involves handshakes with the external communication (e.g.
ShutdownClose the external connection.
RestartReset the Communication backend.

TProducerRPCBackend

inline TProducerRPCBackend(gRPCBackend::AsyncRPCHandle TargetRPC,
std::shared_ptr<ServiceType> Service,
std::unique_ptr<ServerCompletionQueue> CQueue)
#DirectionNameTypeDescription
1TargetRPCgRPCBackend::AsyncRPCHandle
2Servicestd::shared_ptr< ServiceType >
3CQueuestd::unique_ptr< ServerCompletionQueue >

Attributes: inline

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


~TProducerRPCBackend

inline ~TProducerRPCBackend()

Attributes: inline

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

Publish

inline virtual void Publish(ResponseType *Response) override

Send a message to the client.

Parameters

Msg – [in] The message to send to the client

#DirectionNameTypeDescription
1MsgResponseType *The message to send to the client

Attributes: inline, virtual

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

Initialize

inline virtual void Initialize()

Perform any setup that happens prior to establishing any external connection.

this could include opening a socket and waiting for a connection.

Attributes: inline, virtual

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

Start

inline virtual void Start()

Attributes: inline, virtual

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

Establish

inline virtual void Establish()

Perform any setup that involves handshakes with the external communication (e.g.

setting up serialization). Use after Initialize.

Attributes: inline, virtual

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

Shutdown

inline virtual void Shutdown() override

Close the external connection.

Attributes: inline, virtual

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

Restart

inline virtual void Restart()

Reset the Communication backend.

Attributes: inline, virtual

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