Implements a message endpoint for sending and receiving messages on a message bus. 更多...
#include <MessageEndpoint.h>
类 FMessageEndpoint 继承关系图:Public 类型 | |
| typedef struct FMessageEndpointBuilder | Builder |
| Type definition for the endpoint builder. 更多... | |
Public 成员函数 | |
| void | Defer (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const FTimespan &Delay) |
| Defers processing of the given message by the specified time delay. 更多... | |
| void | Disable () |
| Disables this endpoint. 更多... | |
| void | DisableInbox () |
| Disables the inbox for unhandled messages. 更多... | |
| void | Enable () |
| Enables this endpoint. 更多... | |
| void | EnableInbox () |
| Enables the inbox for unhandled messages. 更多... | |
| FMessageEndpoint (const FName &InName, const TSharedRef< IMessageBus, ESPMode::ThreadSafe > &InBus, const TArray< TSharedPtr< IMessageHandler, ESPMode::ThreadSafe > > &InHandlers, const FOnBusNotification InNotificationDelegate) | |
| Creates and initializes a new instance. 更多... | |
| void | Forward (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const FMessageAddress &Recipient) |
| Immediately forwards a previously received message to the specified recipient. 更多... | |
| void | Forward (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const FMessageAddress &Recipient, const FTimespan &Delay) |
| Forwards a previously received message to the specified recipient after a given delay. 更多... | |
| void | Forward (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const TArray< FMessageAddress > &Recipients) |
| Immediately forwards a previously received message to the specified list of recipients. 更多... | |
| void | Forward (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay) |
| Forwards a previously received message. 更多... | |
| const FMessageAddress & | GetAddress () const |
| Gets the endpoint's message address. 更多... | |
| virtual FName | GetDebugName () const override |
| Gets the recipient's name (for debugging purposes). 更多... | |
| virtual ENamedThreads::Type | GetListenerThread () const override |
| Gets the name of the thread on which to receive notifications. 更多... | |
| virtual const FGuid & | GetRecipientId () const override |
| Gets the recipient's unique identifier (for debugging purposes). 更多... | |
| virtual ENamedThreads::Type | GetRecipientThread () const override |
| Gets the name of the thread on which to receive messages. 更多... | |
| virtual FMessageAddress | GetSenderAddress () override |
| Gets the sender's address. 更多... | |
| bool | IsConnected () const |
| Checks whether this endpoint is connected to the bus. 更多... | |
| bool | IsEnabled () const |
| Checks whether this endpoint is enabled. 更多... | |
| bool | IsInboxEmpty () const |
| Checks whether the inbox is empty. 更多... | |
| bool | IsInboxEnabled () const |
| Checks whether the inbox is enabled. 更多... | |
| virtual bool | IsLocal () const override |
| Checks whether this recipient represents a local endpoint. 更多... | |
| virtual void | NotifyMessageError (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const FString &Error) override |
| Notifies the sender of errors. 更多... | |
| virtual void | NotifyRegistration (const FMessageAddress &InAddress, EMessageBusNotification InNotification) |
| Notify a registration event from the bus This is called when a receiver is registered or unregistered from the bus. 更多... | |
| void | ProcessInbox () |
| Calls the matching message handlers for all messages queued up in the inbox. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message) |
| Immediately publishes a message to all subscribed recipients. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message, const FTimespan &Delay) |
| Publishes a message to all subscribed recipients after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message, const TMap< FName, FString > Annotations) |
| Immediately publishes a message to all subscribed recipients. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message, const TMap< FName, FString > Annotations, EMessageScope Scope) |
| Immediately pa message to all subscribed recipients within the specified scope. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message, const TMap< FName, FString > Annotations, EMessageScope Scope, const FTimespan &Delay, const FDateTime &Expiration) |
| Publishes a message to all subscribed recipients within the specified scope. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message, EMessageScope Scope) |
| Immediately pa message to all subscribed recipients within the specified scope. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message, EMessageScope Scope, const FTimespan &Delay) |
| Publishes a message to all subscribed recipients within the specified scope after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Publish (MessageType *Message, EMessageScope Scope, const FTimespan &Delay, const FDateTime &Expiration) |
| Publishes a message to all subscribed recipients within the specified scope. 更多... | |
| void | Publish (void *Message, UScriptStruct *TypeInfo, EMessageScope Scope, const FTimespan &Delay, const FDateTime &Expiration) |
| Publishes a message to all subscribed recipients within the specified scope. 更多... | |
| void | Publish (void *Message, UScriptStruct *TypeInfo, EMessageScope Scope, const TMap< FName, FString > Annotations, const FTimespan &Delay, const FDateTime &Expiration) |
| Publishes a message to all subscribed recipients within the specified scope. 更多... | |
| bool | ReceiveFromInbox (TSharedPtr< IMessageContext, ESPMode::ThreadSafe > &OutContext) |
| Receives a single message from the endpoint's inbox. 更多... | |
| virtual void | ReceiveMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context) override |
| Handles the given message. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const FMessageAddress &Recipient) |
| Immediately sends a message to the specified recipient. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const FMessageAddress &Recipient, const FTimespan &Delay) |
| Sends a message to the specified recipient after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const FMessageAddress &Recipient, const FTimespan &Delay, const FDateTime &Expiration) |
| Sends a message with fields and expiration to the specified recipient after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TArray< FMessageAddress > &Recipients) |
| Immediately sends a message to the specified list of recipients. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay) |
| Sends a message to the specified list of recipients after a given delay after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TMap< FName, FString > Annotations, const FMessageAddress &Recipient) |
| Immediately sends a message to the specified recipient. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TMap< FName, FString > Annotations, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const FMessageAddress &Recipient, const FDateTime &Expiration, const FTimespan &Delay) |
| Sends a message with fields, attachment and expiration to the specified recipient after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const FMessageAddress &Recipient) |
| Sends a message with fields and attachment to the specified recipient. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const FMessageAddress &Recipient, const FDateTime &Expiration, const FTimespan &Delay) |
| Sends a message with fields, attachment and expiration to the specified recipient after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay) |
| Sends a message with fields and attachment to the specified list of recipients after a given delay. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay, const FDateTime &Expiration) |
| Sends a message to the specified list of recipients. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, EMessageFlags Flags, const TMap< FName, FString > Annotations, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay, const FDateTime &Expiration) |
| Sends a message to the specified list of recipients. 更多... | |
| template<typename MessageType > | |
| void | Send (MessageType *Message, EMessageFlags Flags, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay, const FDateTime &Expiration) |
| Sends a message to the specified list of recipients. 更多... | |
| void | Send (void *Message, UScriptStruct *TypeInfo, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay, const FDateTime &Expiration) |
| Sends a message to the specified list of recipients. 更多... | |
| void | Send (void *Message, UScriptStruct *TypeInfo, EMessageFlags Flags, const TMap< FName, FString > Annotations, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay, const FDateTime &Expiration) |
| Sends a message to the specified list of recipients. 更多... | |
| void | Send (void *Message, UScriptStruct *TypeInfo, EMessageFlags Flags, const TSharedPtr< IMessageAttachment, ESPMode::ThreadSafe > &Attachment, const TArray< FMessageAddress > &Recipients, const FTimespan &Delay, const FDateTime &Expiration) |
| Sends a message to the specified list of recipients. 更多... | |
| void | SetRecipientThread (const ENamedThreads::Type &NamedThread) |
| Sets the name of the thread to receive messages on. 更多... | |
| template<class MessageType > | |
| void | Subscribe () |
| Template method to subscribe the message endpoint to the specified type of messages with the default message scope. 更多... | |
| template<class MessageType > | |
| void | Subscribe (const FMessageScopeRange &ScopeRange) |
| Template method to subscribe the message endpoint to the specified type and scope of messages. 更多... | |
| void | Subscribe (const FName &MessageType, const FMessageScopeRange &ScopeRange) |
| Subscribes a message handler. 更多... | |
| void | Unsubscribe () |
| Unsubscribes this endpoint from all message types. 更多... | |
| template<class MessageType > | |
| void | Unsubscribe () |
| Template method to unsubscribe the endpoint from the specified message type. 更多... | |
| void | Unsubscribe (const FName &TopicPattern) |
| Unsubscribes this endpoint from the specified message type. 更多... | |
| ~FMessageEndpoint () | |
| Destructor. | |
Public 成员函数 继承自 TSharedFromThis< FMessageEndpoint, ESPMode::ThreadSafe > | |
| TSharedRef< FMessageEndpoint, Mode > | AsShared () |
| Provides access to a shared reference to this object. 更多... | |
| TSharedRef< FMessageEndpoint const, Mode > | AsShared () const |
| Provides access to a shared reference to this object (const.) Note that is only valid to call this after a shared reference (or shared pointer) to the object has already been created. 更多... | |
| FORCEINLINE bool | DoesSharedInstanceExist () const |
| Checks whether our referenced instance is valid (ie, whether it's safe to call AsShared). 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedPtr< SharedPtrType, Mode > const *InSharedPtr, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
| FORCEINLINE void | UpdateWeakReferenceInternal (TSharedRef< SharedRefType, Mode > const *InSharedRef, OtherType *InObject) const |
| INTERNAL USE ONLY – Do not call this method. 更多... | |
Public 成员函数 继承自 IMessageReceiver | |
| virtual FName | GetDebugName () const =0 |
| Gets the recipient's name (for debugging purposes). 更多... | |
| virtual const FGuid & | GetRecipientId () const =0 |
| Gets the recipient's unique identifier (for debugging purposes). 更多... | |
| virtual ENamedThreads::Type | GetRecipientThread () const =0 |
| Gets the name of the thread on which to receive messages. 更多... | |
| virtual bool | IsLocal () const =0 |
| Checks whether this recipient represents a local endpoint. 更多... | |
| bool | IsRemote () const |
| Checks whether this recipient represents a remote endpoint. 更多... | |
| virtual void | ReceiveMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context)=0 |
| Handles the given message. 更多... | |
| virtual | ~IMessageReceiver () |
| Virtual destructor. | |
Public 成员函数 继承自 IMessageSender | |
| virtual FMessageAddress | GetSenderAddress ()=0 |
| Gets the sender's address. 更多... | |
| virtual void | NotifyMessageError (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context, const FString &Error)=0 |
| Notifies the sender of errors. 更多... | |
| virtual | ~IMessageSender () |
| Virtual destructor. | |
| virtual ENamedThreads::Type | GetListenerThread () const =0 |
| Gets the name of the thread on which to receive notifications. 更多... | |
| virtual void | NotifyRegistration (const FMessageAddress &Address, EMessageBusNotification Notification)=0 |
| Notify a registration event from the bus This is called when a receiver is registered or unregistered from the bus. 更多... | |
静态 Public 成员函数 | |
| static void | SafeRelease (TSharedPtr< FMessageEndpoint, ESPMode::ThreadSafe > &Endpoint) |
| Safely releases a message endpoint that is receiving messages on AnyThread. 更多... | |
Protected 成员函数 | |
| void | ClearHandlers () |
| Clears all handlers in a way that guarantees it won't overlap with message processing. 更多... | |
| FORCEINLINE TSharedPtr< IMessageBus, ESPMode::ThreadSafe > | GetBusIfEnabled () const |
| Gets a shared pointer to the message bus if this endpoint is enabled. 更多... | |
| void | ProcessMessage (const TSharedRef< IMessageContext, ESPMode::ThreadSafe > &Context) |
| Forwards the given message context to matching message handlers. 更多... | |
Protected 成员函数 继承自 TSharedFromThis< FMessageEndpoint, ESPMode::ThreadSafe > | |
| FORCEINLINE TSharedFromThis & | operator= (TSharedFromThis const &) |
| Hidden stub assignment operator | |
| TSharedFromThis () | |
| Hidden stub constructor | |
| TSharedFromThis (TSharedFromThis const &) | |
| Hidden stub copy constructor | |
| ~TSharedFromThis () | |
| Hidden destructor | |
额外继承的成员函数 | |
静态 Protected 成员函数 继承自 TSharedFromThis< FMessageEndpoint, ESPMode::ThreadSafe > | |
| static FORCEINLINE TSharedRef< OtherType const, Mode > | SharedThis (const OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
| static FORCEINLINE TSharedRef< OtherType, Mode > | SharedThis (OtherType *ThisPtr) |
| Provides access to a shared reference to an object, given the object's 'this' pointer. 更多... | |
Implements a message endpoint for sending and receiving messages on a message bus.
This class provides a convenient implementation of the IMessageReceiver and IMessageSender interfaces, which allow consumers to send and receive messages on a message bus. The endpoint allows for receiving messages asynchronously as they arrive, as well as synchronously through an inbox that can be polled.
By default, messages are received synchronously on the thread that the endpoint was created on. If the message consumer is thread-safe, a more efficient message dispatch can be enabled by calling the SetRecipientThread() method with ENamedThreads::AnyThread.
Endpoints that are destroyed or receive messages on non-Game threads should use the static function FMessageEndpoint::SafeRelease() to dispose of the endpoint. This will ensure that there are no race conditions between endpoint destruction and the receiving of messages.
The underlying message bus will take ownership of all sent and published message objects. The memory held by the messages must therefore NOT be freed by the caller.
| typedef struct FMessageEndpointBuilder FMessageEndpoint::Builder |
Type definition for the endpoint builder.
When building message endpoints that receive messages on AnyThread, use the SafeRelease helper function to avoid race conditions when destroying the objects that own the endpoints.
|
inline |
Creates and initializes a new instance.
| InName | The endpoint's name (for debugging purposes). |
| InBus | The message bus to attach this endpoint to. |
| InHandlers | The collection of message handlers to register. |
|
inlineprotected |
Clears all handlers in a way that guarantees it won't overlap with message processing.
This preserves internal integrity of the array and cases where our owner may be shutting down while receiving messages.
|
inline |
Defers processing of the given message by the specified time delay.
The message is effectively delivered again to this endpoint after the original sent time plus the time delay have elapsed.
| Context | The context of the message to defer. |
| Delay | The time delay. |
|
inline |
|
inline |
Disables the inbox for unhandled messages.
The inbox is disabled by default.
|
inline |
|
inline |
Enables the inbox for unhandled messages.
If enabled, the inbox will queue up all received messages. Use ProcessInbox() to synchronously invoke the registered message handlers for all queued up messages, or ReceiveFromInbox() to manually receive one message from the inbox at a time. The inbox is disabled by default.
|
inline |
Immediately forwards a previously received message to the specified recipient.
Messages can only be forwarded to endpoints within the same process.
| Context | The context of the message to forward. |
| Recipient | The address of the recipient to forward the message to. |
|
inline |
Forwards a previously received message to the specified recipient after a given delay.
Messages can only be forwarded to endpoints within the same process.
| Context | The context of the message to forward. |
| Recipient | The address of the recipient to forward the message to. |
| ForwardingScope | The scope of the forwarded message. |
| Delay | The delay after which to publish the message. |
|
inline |
Immediately forwards a previously received message to the specified list of recipients.
Messages can only be forwarded to endpoints within the same process.
| Context | The context of the message to forward. |
| Recipients | The list of message recipients to forward the message to. |
| ForwardingScope | The scope of the forwarded message. |
|
inline |
Forwards a previously received message.
Messages can only be forwarded to endpoints within the same process.
| Context | The context of the message to forward. |
| Recipients | The list of message recipients to forward the message to. |
| Delay | The time delay. |
|
inline |
Gets the endpoint's message address.
|
inlineprotected |
Gets a shared pointer to the message bus if this endpoint is enabled.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Gets the name of the thread on which to receive notifications.
If the listener's Notify[*] methods are thread-safe, return ThreadAny for best performance.
实现了 IBusListener.
|
inlineoverridevirtual |
Gets the recipient's unique identifier (for debugging purposes).
实现了 IMessageReceiver.
|
inlineoverridevirtual |
Gets the name of the thread on which to receive messages.
If the recipient's ReceiveMessage() is thread-safe, return ThreadAny for best performance.
实现了 IMessageReceiver.
|
inlineoverridevirtual |
|
inline |
Checks whether this endpoint is connected to the bus.
|
inline |
Checks whether this endpoint is enabled.
|
inline |
Checks whether the inbox is empty.
|
inline |
Checks whether the inbox is enabled.
|
inlineoverridevirtual |
Checks whether this recipient represents a local endpoint.
Local recipients are located in the current thread or process. Recipients located in other processes on the same machine or on remote machines are considered remote.
实现了 IMessageReceiver.
|
inlineoverridevirtual |
Notifies the sender of errors.
| Context | The context of the message that generated the error. |
| Error | The error string. |
实现了 IMessageSender.
|
inlinevirtual |
Notify a registration event from the bus This is called when a receiver is registered or unregistered from the bus.
| Address | The address of the recipient that just un/registered from the bus. |
| Notification | The even type, either Registered or Unregistered |
实现了 IBusListener.
|
inline |
Calls the matching message handlers for all messages queued up in the inbox.
Note that an incoming message will only be queued up in the endpoint's inbox if the inbox has been enabled and no matching message handler handled it. The inbox is disabled by default and must be enabled using the EnableInbox() method.
|
inlineprotected |
Forwards the given message context to matching message handlers.
| Context | The context of the message to handle. |
|
inline |
Immediately publishes a message to all subscribed recipients.
| Message | The message to publish. |
|
inline |
Publishes a message to all subscribed recipients after a given delay.
| Message | The message to publish. |
| Delay | The delay after which to publish the message. |
|
inline |
Immediately publishes a message to all subscribed recipients.
| Message | The message to publish. |
| Annotations | An optional message annotations header. |
|
inline |
Immediately pa message to all subscribed recipients within the specified scope.
| Message | The message to publish. |
| Annotations | An optional message annotations header. |
| Scope | The message scope. |
|
inline |
Publishes a message to all subscribed recipients within the specified scope.
| Message | The message to publish. |
| Annotations | An optional message annotations header. |
| Scope | The message scope. |
| Fields | The message content. |
| Delay | The delay after which to publish the message. |
| Expiration | The time at which the message expires. |
|
inline |
Immediately pa message to all subscribed recipients within the specified scope.
| Message | The message to publish. |
| Scope | The message scope. |
|
inline |
Publishes a message to all subscribed recipients within the specified scope after a given delay.
| Message | The message to publish. |
| Scope | The message scope. |
| Delay | The delay after which to publish the message. |
|
inline |
Publishes a message to all subscribed recipients within the specified scope.
| Message | The message to publish. |
| Scope | The message scope. |
| Fields | The message content. |
| Delay | The delay after which to publish the message. |
| Expiration | The time at which the message expires. |
|
inline |
Publishes a message to all subscribed recipients within the specified scope.
| Message | The message to publish. |
| TypeInfo | The message's type information. |
| Scope | The message scope. |
| Fields | The message content. |
| Delay | The delay after which to publish the message. |
| Expiration | The time at which the message expires. |
|
inline |
Publishes a message to all subscribed recipients within the specified scope.
| Message | The message to publish. |
| TypeInfo | The message's type information. |
| Scope | The message scope. |
| Annotations | An optional message annotations header. |
| Fields | The message content. |
| Delay | The delay after which to publish the message. |
| Expiration | The time at which the message expires. |
|
inline |
Receives a single message from the endpoint's inbox.
Note that an incoming message will only be queued up in the endpoint's inbox if the inbox has been enabled and no matching message handler handled it. The inbox is disabled by default and must be enabled using the EnableInbox() method.
| OutContext | Will hold the context of the received message. |
|
inlineoverridevirtual |
Handles the given message.
| Context | Will hold the context of the received message. |
实现了 IMessageReceiver.
|
inlinestatic |
Safely releases a message endpoint that is receiving messages on AnyThread.
When an object that owns a message endpoint receiving on AnyThread is being destroyed, it is possible that the endpoint can outlive the object for a brief period of time if the Messaging system is dispatching messages to it. This helper function is to block the calling thread while any messages are being dispatched, so that the endpoint does not invoke any message handlers after the object has been destroyed.
| Endpoint | The message endpoint to release. |
|
inline |
Immediately sends a message to the specified recipient.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Recipient | The message recipient. |
|
inline |
Sends a message to the specified recipient after a given delay.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Recipient | The message recipient. |
| Delay | The delay after which to send the message. |
|
inline |
Sends a message with fields and expiration to the specified recipient after a given delay.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Recipient | The message recipient. |
| Expiration | The time at which the message expires. |
| Delay | The delay after which to send the message. |
|
inline |
Immediately sends a message to the specified list of recipients.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Recipients | The message recipients. |
|
inline |
Sends a message to the specified list of recipients after a given delay after a given delay.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
|
inline |
Immediately sends a message to the specified recipient.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Annotations | An optional message annotations header. |
| Recipient | The message recipient. |
|
inline |
Sends a message with fields, attachment and expiration to the specified recipient after a given delay.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Annotations | An optional message annotations header. |
| Attachment | An optional binary data attachment. |
| Recipient | The message recipient. |
| Expiration | The time at which the message expires. |
| Delay | The delay after which to send the message. |
|
inline |
Sends a message with fields and attachment to the specified recipient.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Attachment | An optional binary data attachment. |
| Recipient | The message recipient. |
|
inline |
Sends a message with fields, attachment and expiration to the specified recipient after a given delay.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Attachment | An optional binary data attachment. |
| Recipient | The message recipient. |
| Expiration | The time at which the message expires. |
| Delay | The delay after which to send the message. |
|
inline |
Sends a message with fields and attachment to the specified list of recipients after a given delay.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Attachment | An optional binary data attachment. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
|
inline |
Sends a message to the specified list of recipients.
| MessageType | The type of message to send. |
| Message | The message to send. |
| Attachment | An optional binary data attachment. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
| Expiration | The time at which the message expires. |
|
inline |
Sends a message to the specified list of recipients.
Allows to specify message flags
| Message | The message to send. |
| TypeInfo | The message's type information. |
| Flags | The message's type information. |
| Annotations | An optional message annotations header. |
| Attachment | An optional binary data attachment. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
| Expiration | The time at which the message expires. |
|
inline |
Sends a message to the specified list of recipients.
Allows to specify message flags
| Message | The message to send. |
| TypeInfo | The message's type information. |
| Flags | The message's type information. |
| Attachment | An optional binary data attachment. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
| Expiration | The time at which the message expires. |
|
inline |
Sends a message to the specified list of recipients.
| Message | The message to send. |
| TypeInfo | The message's type information. |
| Attachment | An optional binary data attachment. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
| Expiration | The time at which the message expires. |
|
inline |
Sends a message to the specified list of recipients.
| Message | The message to send. |
| TypeInfo | The message's type information. |
| Flags | The message's type information. |
| Annotations | An optional message annotations header. |
| Attachment | An optional binary data attachment. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
| Expiration | The time at which the message expires. |
|
inline |
Sends a message to the specified list of recipients.
Allows to specify message flags
| Message | The message to send. |
| TypeInfo | The message's type information. |
| Flags | The message's type information. |
| Attachment | An optional binary data attachment. |
| Recipients | The message recipients. |
| Delay | The delay after which to send the message. |
| Expiration | The time at which the message expires. |
|
inline |
Sets the name of the thread to receive messages on.
Use this method to receive messages on a particular thread, for example, if the consumer owning this endpoint is not thread-safe. The default value is ThreadAny.
ThreadAny is the fastest way to receive messages. It should be used if the receiving code is completely thread-safe and if it is sufficiently fast. ThreadAny MUST NOT be used if the receiving code is not thread-safe. It also SHOULD NOT be used if the code includes time consuming operations, because it will block the message router, causing no other messages to be delivered in the meantime.
| NamedThread | The name of the thread to receive messages on. |
|
inline |
Template method to subscribe the message endpoint to the specified type of messages with the default message scope.
The default message scope is all messages excluding loopback messages.
| HandlerType | The type of the class handling the message. |
| MessageType | The type of messages to subscribe to. |
| Handler | The class handling the messages. |
| HandlerFunc | The class function handling the messages. |
|
inline |
Template method to subscribe the message endpoint to the specified type and scope of messages.
| HandlerType | The type of the class handling the message. |
| MessageType | The type of messages to subscribe to. |
| Handler | The class handling the messages. |
| HandlerFunc | The class function handling the messages. |
| ScopeRange | The range of message scopes to include in the subscription. |
|
inline |
Subscribes a message handler.
| MessageType | The type name of the messages to subscribe to. |
| ScopeRange | The range of message scopes to include in the subscription. |
|
inline |
Unsubscribes this endpoint from all message types.
|
inline |
Template method to unsubscribe the endpoint from the specified message type.
| MessageType | The type of message to unsubscribe (NAME_All = all types). |
|
inline |
Unsubscribes this endpoint from the specified message type.
| MessageType | The type of message to unsubscribe (NAME_All = all types). |