Class IPollingBackendInterface
-
template<typename T>
class IPollingBackendInterface : public IComBackendInterface -
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
- virtual TOptional<const T*> Poll() = 0
-
Poll the Backend for a message from the client.
Note
This function should be non-blocking
- Returns:
-
An Empty optional if No messages have been received, a fulfilled one otherwise
-
template<typename UnrealType>
inline TOptional<UnrealType*> PollAndDeserialize() -
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