P - Type of payload received.T - Type of concrete manager, needed for fluent methods.public abstract class AbstractSubscriberAdmin<P,T extends ISubscriberAdmin & org.symphonyoss.s2.common.fluent.IFluent<T>> extends AbstractSubscriberBase<P,T> implements ISubscriberAdmin
nameFactory_, subscribers_| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSubscriberAdmin(INameFactory nameFactory,
Class<T> type) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
assertConfigurable() |
protected abstract void |
createSubcription(TopicName topicName,
SubscriptionName subscriptionName,
boolean dryRun) |
void |
createSubscriptions(boolean dryRun)
Create all configured subscriptions.
|
protected abstract void |
deleteSubcription(TopicName topicName,
SubscriptionName subscriptionName,
boolean dryRun) |
void |
deleteSubscriptions(boolean dryRun)
Delete all configured subscriptions.
|
protected void |
setLifeCycleState(FugueLifecycleState arg0) |
void |
start() |
void |
stop() |
T |
withSubscription(String subscriptionId,
Collection<TopicName> topicNames)
Subscribe to the given subscription on the given topics.
|
T |
withSubscription(String subscriptionId,
String[] topicNames)
Subscribe to the given subscription on the given topics.
|
T |
withSubscription(String subscriptionId,
String topicId,
String... additionalTopicIds)
Subscribe to the given subscription on the given topics.
|
ISubscriberAdmin |
withSubscription(Subscription subscription) |
getSubscribers, getTotalSubscriptionCnt, withSubscription, withSubscription, withSubscription, withSubscriptionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetComponentId, getComponentState, getComponentStatusMessage, quiesceprotected AbstractSubscriberAdmin(INameFactory nameFactory, Class<T> type)
public ISubscriberAdmin withSubscription(Subscription subscription)
withSubscription in interface ISubscriberAdminpublic T withSubscription(String subscriptionId, String topicId, String... additionalTopicIds)
ISubscriberAdminwithSubscription in interface ISubscriberAdminsubscriptionId - A subscription name.topicId - A topic name.additionalTopicIds - An optional list of additional topic names.public T withSubscription(String subscriptionId, Collection<TopicName> topicNames)
ISubscriberAdminwithSubscription in interface ISubscriberAdminsubscriptionId - A subscription name.topicNames - A list of topic names.public T withSubscription(String subscriptionId, String[] topicNames)
ISubscriberAdminwithSubscription in interface ISubscriberAdminsubscriptionId - A subscription name.topicNames - A list of topic names.public void start()
start in interface IFugueComponentpublic void stop()
stop in interface IFugueComponentprotected abstract void createSubcription(TopicName topicName, SubscriptionName subscriptionName, boolean dryRun)
protected abstract void deleteSubcription(TopicName topicName, SubscriptionName subscriptionName, boolean dryRun)
public void createSubscriptions(boolean dryRun)
ISubscriberAdmincreateSubscriptions in interface ISubscriberAdmindryRun - If true then don't change anythingpublic void deleteSubscriptions(boolean dryRun)
ISubscriberAdmindeleteSubscriptions in interface ISubscriberAdmindryRun - If true then don't change anythingprotected void assertConfigurable()
protected void setLifeCycleState(FugueLifecycleState arg0)
Copyright © 2018 Symphony Software Foundation. All rights reserved.