public class Subscription extends Object
| Constructor and Description |
|---|
Subscription() |
| Modifier and Type | Method and Description |
|---|---|
Collection<TopicName> |
createObsoleteTopicNames(INameFactory nameFactory)
Deprecated.
|
Collection<TopicName> |
createTopicNames(INameFactory nameFactory)
Create a Collection of TopicNames for all topics for this subscription, using the given NameFactory.
|
String |
getId() |
String |
getObsoleteId() |
Subscription |
withId(String id)
Set the optional subscriptionId.
|
Subscription |
withObsoleteId(String obsoleteId)
Set the obsolete ID for this subscription.
|
Subscription |
withTopic(String topicId)
Add the given locally owned Topic to the subscription.
|
Subscription |
withTopic(Topic topic)
Add the given Topic to the subscription.
|
public Subscription withId(String id)
id - The subscriptionId.public Subscription withObsoleteId(String obsoleteId)
obsoleteId - The obsolete subscriptionId.public Subscription withTopic(Topic topic)
topic - The Topic.public Subscription withTopic(String topicId)
topicId - The id of the Topic, which belongs to the current service.public String getId()
public String getObsoleteId()
public Collection<TopicName> createTopicNames(INameFactory nameFactory)
nameFactory - The name factory to use (which knows the current environment, service etc)@Deprecated public Collection<TopicName> createObsoleteTopicNames(INameFactory nameFactory)
nameFactory - The name factory to use (which knows the current environment, service etc)Copyright © 2018 Symphony Software Foundation. All rights reserved.