This configuration supports the Publisher API which has been deprecated at this release. This interface will be removed in a future release.
@Deprecated public interface SubscriptionValidationPolicyConfig extends ValidationPolicyConfig
This defines the configuration of a Subscription Validation Policy as used by a Publisher.
Such policies may be added and changed at runtime.
ValidationPolicyConfig.Type
Modifier and Type | Method and Description |
---|---|
boolean |
addTopic(String topicName)
Deprecated.
Add a named topic (or Topic pattern) to map to this policy.
|
boolean |
appliesToTopic(String topicName)
Deprecated.
Does this policy apply to a given topic name?
|
List<String> |
getTopics()
Deprecated.
Get the list of topics mapped to this policy.
|
boolean |
isValidatingChildren()
Deprecated.
Is validate children option set?
|
void |
removeAllTopics()
Deprecated.
Remove all topics mapped to this policy.
|
boolean |
removeTopic(String topicName)
Deprecated.
Remove a topic (or topic pattern) that this policy should be applied to.
|
void |
setValidateChildren(boolean validateChildren)
Deprecated.
Sets the validate children option.
|
addAddress, addHostName, addLocale, addResolvedName, getAddresses, getHostNames, getLocales, getName, getResolvedNames, getType, hasHostNames, hasLocales, hasResolvedNames, isAutomatic, isConnection, isSubscription, removeAddresses, removeHostNames, removeLocales, removeResolvedNames, setAutomatic, setType, validate
void setValidateChildren(boolean validateChildren)
Controls whether to perform validation on child topics if the parent topic fails validation.
By default this is false.
validateChildren
- true to validate childrenboolean isValidatingChildren()
boolean addTopic(String topicName) throws ConfigException
topicName
- the topic name or pattern.ConfigException
- if the specified topic selector is invalidList<String> getTopics()
boolean removeTopic(String topicName)
topicName
- topic name or patternvoid removeAllTopics()
boolean appliesToTopic(String topicName)
This will return true if the policy specifies no topics or if one of the topic patterns matches the specified topic name.
topicName
- a topic nameCopyright © 2020 Push Technology Ltd. All Rights Reserved.