DurableTopicSubscription
public interface TopicSubscription
Modifier and Type | Method | Description |
---|---|---|
void |
addMessageReceivedListener(MessageReceivedListener messageReceivedListener) |
Event to register subscriber against the topic so that it can receive the published messages.
|
Topic |
getTopic() |
Retrieves Topic instance containing information about the topic.
|
void |
removeMessageReceivedListener(MessageReceivedListener messageReceivedListener) |
Unregisters the user for message received event.
|
void |
unSubscribe() |
Unsubscribes the subscription to this topic.
|
Topic getTopic()
Topic
instance of the topic.void addMessageReceivedListener(MessageReceivedListener messageReceivedListener) throws CacheException
messageReceivedListener
- The listener that is invoked whenever a message is received.CacheException
void removeMessageReceivedListener(MessageReceivedListener messageReceivedListener) throws CacheException
messageReceivedListener
- The instance of the registerd message received listener.CacheException
void unSubscribe() throws java.lang.Exception
java.lang.Exception