The ITopic interface facilitates creating subscription and publishing of messages against the topic. This also provides event registrations for message delivery failure, receiving messages and deleting topics.
public interface ITopic : IDisposable
Default Expiry time of messsage for this topic. Its default value is TimeSpan.MaxValue.
Is topic closed or not?
Number of messages published for this topic.
Topic deletion events are delivered through this callback.
This method is used to register against topic on cache if topic exists, otherwise throw exception.
|Publish(Message, DeliveryOption, Boolean)||
This method is used to Publish the message in the cache with specified DeliveryOption. And the option to notify the publisher if the message has failed to deliver because of expiration, eviction or internal system issue.
Subscribe for Message delivery failure events