![](../icons/Hazelcast-IMDG-Logo-Orange_Dark_200px.jpg) | ITopicTAddMessageListener Method (ActionMessageT) |
Subscribes to this topic.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.4
Syntaxstring AddMessageListener(
Action<Message<T>> listener
)
Function AddMessageListener (
listener As Action(Of Message(Of T))
) As String
String^ AddMessageListener(
Action<Message<T>^>^ listener
)
abstract AddMessageListener :
listener : Action<Message<'T>> -> string
Parameters
- listener
- Type: SystemActionMessageT
Return Value
Type:
String
Remarks
Subscribes to this topic. When someone publishes a message on this topic.
onMessage() function of the given IMessageListener is called. More than one message listener can be
added on one instance.
See Also