Skip to content

Template Class IConsumerBackend

Template Class IConsumerBackend

  • Defined in File ConsumerBackend.h

Inheritance Relationships

Base Type

template <typename T> class IConsumerBackend : public IProtobufBackend

Source: Source/Schola/Protobuf/Public/ProtobufBackends/ConsumerBackend.h A Generic Interface for any service that can be used to receive messages of type T asynchronously via polling.

Template Parameters:

T – The type of message that will be output by this interface


Public Functions

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

Poll

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

Poll the Backend for a message from the client.

Returns:

An Empty optional if No messages have been received, a fulfilled one otherwise

Attributes: pure virtual

Source: Source/Schola/Protobuf/Public/ProtobufBackends/ConsumerBackend.h

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.

Template Parameters:

UnrealType – The type to deserialize the message into

Returns:

An Empty optional if No messages have been received, a fulfilled one otherwise

Attributes: pure virtual

Source: Source/Schola/Protobuf/Public/ProtobufBackends/ConsumerBackend.h