engine
 
载入中...
搜索中...
未找到
Public 成员函数 | 所有成员列表
IBusListener类 参考abstract

Interface for message bus listener. 更多...

#include <IMessageBusListener.h>

+ 类 IBusListener 继承关系图:

Public 成员函数

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. 更多...
 

详细描述

Interface for message bus listener.

Classes that implement this interface are able to receive notifications from a message bus. A bus listener will receive a call to its appropriate IBusListener.Notify* method for dispatched notifications it is listening to.

This interface provides a rather low-level mechanism for listening to notification. Instead of implementing it, Most users will want to use an instance of see FMessageEndpoint, which provides a much more convenient way of listening to bus notifications.

参见
FMessageEndpoint, IMessageBus

成员函数说明

◆ GetListenerThread()

virtual ENamedThreads::Type IBusListener::GetListenerThread ( ) const
pure virtual

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.

返回
Name of the listener thread.

在 FMessageEndpoint 内被实现.

◆ NotifyRegistration()

virtual void IBusListener::NotifyRegistration ( const FMessageAddress &  Address,
EMessageBusNotification  Notification 
)
pure virtual

Notify a registration event from the bus This is called when a receiver is registered or unregistered from the bus.

参数
AddressThe address of the recipient that just un/registered from the bus.
NotificationThe even type, either Registered or Unregistered

在 FMessageEndpoint 内被实现.


该类的文档由以下文件生成: