Subscribes to this topic.
Namespace: Hazelcast.CoreAssembly: Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.8.2
string 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
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.
Reference