Interface for message contexts. 更多...
#include <IMessageContext.h>
类 IMessageContext 继承关系图:Public 成员函数 | |
| virtual const TMap< FName, FString > & | GetAnnotations () const =0 |
| Gets the optional message annotations. 更多... | |
| virtual TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > | GetAttachment () const =0 |
| Gets the message attachment, if present. 更多... | |
| virtual const FDateTime & | GetExpiration () const =0 |
| Gets the date and time at which the message expires. 更多... | |
| virtual EMessageFlags | GetFlags () const =0 |
| Gets the scope to which the message was sent. 更多... | |
| virtual const FMessageAddress & | GetForwarder () const =0 |
| Gets the forwarder's address. 更多... | |
| virtual const void * | GetMessage () const =0 |
| Gets the message data. 更多... | |
| FName | GetMessageType () const |
| Gets the name of the message type. 更多... | |
| virtual const TWeakObjectPtr< UScriptStruct > & | GetMessageTypeInfo () const =0 |
| Gets the message's type information. 更多... | |
| virtual TSharedPtr< IMessageContext, ESPMode::ThreadSafe > | GetOriginalContext () const =0 |
| Returns the original message context in case the message was forwarded. 更多... | |
| virtual const TArray< FMessageAddress > & | GetRecipients () const =0 |
| Gets the list of message recipients. 更多... | |
| virtual EMessageScope | GetScope () const =0 |
| Gets the scope to which the message was sent. 更多... | |
| virtual const FMessageAddress & | GetSender () const =0 |
| Gets the sender's address. 更多... | |
| virtual ENamedThreads::Type | GetSenderThread () const =0 |
| Gets the name of the thread from which the message was sent. 更多... | |
| virtual const FDateTime & | GetTimeForwarded () const =0 |
| Gets the time at which the message was forwarded. 更多... | |
| virtual const FDateTime & | GetTimeSent () const =0 |
| Gets the time at which the message was sent. 更多... | |
| bool | IsForwarded () const |
| Checks whether this is a forwarded message. 更多... | |
| bool | IsValid () const |
| Checks whether this context is valid. 更多... | |
| virtual | ~IMessageContext () |
| Virtual destructor. | |
Interface for message contexts.
Messages are delivered inside message contexts, which store the message itself plus additional data associated with the message. Recipients of a message are usually interested in data that describes the message, such as its origin or when it expires. They may also be interested in optional out-of-band binary data that is attached to the message.
The sender's address (IMessageContext.GetSender) is often needed to send a reply message to a message sender, i.e. in response to a published message. The message attachment (IMessageContext.GetAttachment) is an optional bundle of binary bulk data that is transferred independently from the message itself and allows for transferring larger amounts of data that would otherwise clog up the messaging system.
In case a message was forwarded by another endpoint, the context of the original sender can be accessed using the IMessageContext.GetOriginalContext method.
Gets the optional message annotations.
|
pure virtual |
Gets the message attachment, if present.
|
pure virtual |
Gets the date and time at which the message expires.
|
pure virtual |
Gets the scope to which the message was sent.
|
pure virtual |
Gets the forwarder's address.
|
pure virtual |
Gets the message data.
|
inline |
|
pure virtual |
|
pure virtual |
Returns the original message context in case the message was forwarded.
|
pure virtual |
|
pure virtual |
Gets the scope to which the message was sent.
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
inline |
Checks whether this is a forwarded message.
|
inline |
Checks whether this context is valid.