Skip to content

IConsumerBackend

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

template <typename T> class IConsumerBackend : public IProtobufBackend

Methods

Poll

virtual TOptional<const T *> Poll() = 0

Poll the Backend for a message from the client.


Poll

template <typename UnrealType>
inline void Poll(TOptional<UnrealType> &OutDeserializedMessage)

Poll the Backend for a message from the client and deserialize it into the specified type.

Parameters

  • OutDeserializedMessage (TOptional<UnrealType>)

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