@ProviderType
public interface AsyncReceiverSubscriptions
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AsyncReceiverSubscriptions.SubscriptionChangeListener
The listener for subscription change notifications.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addSubscriptionAsync(TopicSubscription topicSubscription,
AsyncReceiverSubscriptions.SubscriptionChangeListener listener)
Requests to subscribe asynchronously to a given topic subscription.
|
void |
removeSubscriptionAsync(TopicSubscription topicSubscription,
AsyncReceiverSubscriptions.SubscriptionChangeListener listener)
Unsubscribe from a previously subscribed message source on a broker, so that no more messages
will be received from it.
|
void addSubscriptionAsync(TopicSubscription topicSubscription, AsyncReceiverSubscriptions.SubscriptionChangeListener listener) throws PubSubPlusClientException
SubscriptionChangeListener. Once a subscription is applied
successfully, messages are expected to be received from matching topics.topicSubscription - the subscription expression for which to subscribelistener - the callback to use for notification processing of subscription
changes or failures; null is an illegal valuePubSubPlusClientException - if the operation could not be completedvoid removeSubscriptionAsync(TopicSubscription topicSubscription, AsyncReceiverSubscriptions.SubscriptionChangeListener listener) throws PubSubPlusClientException
SubscriptionChangeListener.topicSubscription - the topic subscription to be removedlistener - the callback to use to for the communication of subscription changes
or failures; null is an illegal valuePubSubPlusClientException - if the operation could not be completed.Copyright 2019-2025 Solace Corporation. All rights reserved.