.NET Client Documentation
5.1.1
Search Results for

    Show / Hide Table of Contents

    IHTopic<T> Interface

    Namespace: Hazelcast.DistributedObjects
    Assembly: Hazelcast.Net.dll

    Hazelcast provides distribution mechanism for publishing messages that are delivered to multiple subscribers which is also known as publish/subscribe (pub/sub) messaging model.

    public interface IHTopic<T> : IDistributedObject, IAsyncDisposable
    Inherited Members
    IDistributedObject.ServiceName
    IDistributedObject.Name
    IDistributedObject.PartitionKey
    IDistributedObject.DestroyAsync()
    IAsyncDisposable.DisposeAsync()
    Type Parameters
    T
    Remarks

    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.

    Methods

    PublishAsync(T)

    Publishes the message to all subscribers of this topic

    SubscribeAsync(Action<TopicEventHandlers<T>>, Object)

    Subscribes to this topic.

    UnsubscribeAsync(Guid)

    Stops receiving messages for the given message listener.

    In This Article
    Back to top Copyright © 2010-2022 Hazelcast, Inc. All rights reserved.
    Generated by DocFX.