@ProviderType
public interface ReceiverSubscriptions
Modifier and Type | Method and Description |
---|---|
void |
addSubscription(TopicSubscription anotherSubscription)
Subscribes to another message source on a broker to receive messages from.
|
void |
removeSubscription(TopicSubscription subscription)
Un-subscribes from a previously subscribed message source on a broker.
|
void addSubscription(TopicSubscription anotherSubscription) throws PubSubPlusClientException, InterruptedException
anotherSubscription
- the additional message source to consume messages fromPubSubPlusClientException
- if the operation could not be performedIllegalStateException
- if the service is not runningInterruptedException
- if any thread has interrupted the current thread which can
occur when the receiver has been shut down; when this occurs,
the interrupted status of the current thread is cleared when
this exception is thrownvoid removeSubscription(TopicSubscription subscription) throws PubSubPlusClientException, InterruptedException
subscription
- the message source to unsubscribe fromPubSubPlusClientException
- if the operation could not be performedIllegalStateException
- if the service is not runningInterruptedException
- if any thread has interrupted the current thread which can
occur when the receiver has been shut down; when this occurs,
the interrupted status of the current thread is cleared when
this exception is thrownCopyright 2019-2024 Solace Corporation. All rights reserved.