![](../icons/HazelcastLogo_Dark_200w.jpg) | IMessageListenerTOnMessage Method |
Invoked when a message is received for the added topic.
Namespace:
Hazelcast.Core
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.2
Syntaxvoid OnMessage(
Message<T> message
)
Sub OnMessage (
message As Message(Of T)
)
void OnMessage(
Message<T>^ message
)
abstract OnMessage :
message : Message<'T> -> unit
Parameters
- message
- Type: Hazelcast.CoreMessageT
received message
Remarks
Invoked when a message is received for the added topic. Note that topic guarantees message ordering.
Therefore there is only one thread invoking onMessage. The user shouldn't keep the thread busy and preferably
dispatch it via an Executor. This will increase the performance of the topic.
See Also