Skip to content

IProducerBackend

A Generic Interface for any service that can be used to send messages of type T asynchronously.

template <typename T> class IProducerBackend : public IProtobufBackend

Methods

Publish

virtual void Publish(T *Msg) = 0

Send a message to the client.

Parameters

  • Msg (T)

Allocate

inline virtual T *Allocate()

Publish

template <typename UnrealType>
inline void Publish(const UnrealType &InUnrealValue)

Serialize an Unreal value to protobuf and publish it.

Parameters

  • InUnrealValue (const UnrealType)

Source: Source/ScholaProtobuf/Public/ProtobufBackends/ProducerBackend.h