Assembly: HazelcastClient3x (in HazelcastClient3x.dll) Version: 220.127.116.11
public interface ITopic<E> : IDistributedObject
Public Interface ITopic(Of E) Inherits IDistributedObject
generic<typename E> public interface class ITopic : IDistributedObject
type ITopic<'E> = interface interface IDistributedObject end
Thetype exposes the following members.
Subscribes to this topic.
Destroys this object cluster-wide.(Inherited from IDistributedObject.)
Returns the unique name for this IDistributedObject.(Inherited from IDistributedObject.)
Returns the name of this ITopic instance
Returns the key of partition this IDistributedObject is assigned to.(Inherited from IDistributedObject.)
Returns the service name for this object.(Inherited from IDistributedObject.)
Publishes the message to all subscribers of this topic
Stops receiving messages for the given message listener.
Hazelcast provides distribution mechanism for publishing messages that are delivered to multiple subscribers which is also known as publish/subscribe (pub/sub) messaging model. Publish and subscriptions are cluster-wide. When a member subscribes for a topic, it is actually registering for messages published by any member in the cluster, including the new members joined after you added the listener.Messages are ordered, meaning, listeners(subscribers) will process the messages in the order they are actually published. If cluster member M publishes messages m1, m2, m3...mn to a topic T, then Hazelcast makes sure that all of the subscribers of topic T will receive and process m1, m2, m3...mn in order.