Template Class TProducerRPCBackend
Template Class TProducerRPCBackend
- Defined in File ProducerRPCBackend.h
Inheritance Relationships
Base Types
-
public TRPCBackend< ServiceType, RequestType, ResponseType >(Template Class TRPCBackend) -
public IProducerBackend< ResponseType >(Template Class IProducerBackend)
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
| Symbol | Details |
|---|---|
TProducerRPCBackend | — |
~TProducerRPCBackend | — |
Publish | Send a message to the client. |
Initialize | Perform any setup that happens prior to establishing any external connection. |
Start | — |
Establish | Perform any setup that involves handshakes with the external communication (e.g. |
Shutdown | Close the external connection. |
Restart | Reset the Communication backend. |
TProducerRPCBackend
inline TProducerRPCBackend(gRPCBackend::AsyncRPCHandle TargetRPC, std::shared_ptr<ServiceType> Service, std::unique_ptr<ServerCompletionQueue> CQueue)| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | TargetRPC | gRPCBackend::AsyncRPCHandle | — |
| 2 | — | Service | std::shared_ptr< ServiceType > | — |
| 3 | — | CQueue | std::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) overrideSend a message to the client.
Parameters
Msg – [in] The message to send to the client
| # | Direction | Name | Type | Description |
|---|---|---|---|---|
| 1 | — | Msg | ResponseType * | 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() overrideClose 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