Package org.symphonyoss.s2.fugue.pubsub
Class AbstractPublisherManager<T extends AbstractPublisherManager<T>>
- java.lang.Object
-
- org.symphonyoss.s2.common.fluent.Fluent<T>
-
- org.symphonyoss.s2.fugue.FugueLifecycleComponent<T>
-
- org.symphonyoss.s2.fugue.pubsub.AbstractPublisherManager<T>
-
- Type Parameters:
T- Type of concrete manager, needed for fluent methods.
- All Implemented Interfaces:
org.symphonyoss.s2.common.fluent.IFluent<T>,org.symphonyoss.s2.fugue.IFugueComponent,org.symphonyoss.s2.fugue.IFugueLifecycleComponent,IPublisherManager
public abstract class AbstractPublisherManager<T extends AbstractPublisherManager<T>> extends org.symphonyoss.s2.fugue.FugueLifecycleComponent<T> implements IPublisherManager
Base class for publisher managers.- Author:
- Bruce Skingle
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractPublisherManager.Builder<T extends AbstractPublisherManager.Builder<T,B>,B extends org.symphonyoss.s2.common.fluent.IFluent<B>>Builder.
-
Field Summary
Fields Modifier and Type Field Description protected org.symphonyoss.s2.fugue.naming.INameFactorynameFactory_
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstractPublisherManager(Class<T> builtType, AbstractPublisherManager.Builder<?,T> builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidassertConfigurable()org.symphonyoss.s2.fugue.FugueLifecycleStategetLifecycleState()IPublishergetPublisherByName(String topicId)Get the IPublisher for the given named topic.IPublishergetPublisherByName(String serviceId, String topicId)Get the IPublisher for the given named topic.protected voidsetLifeCycleState(org.symphonyoss.s2.fugue.FugueLifecycleState arg0)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.symphonyoss.s2.fugue.IFugueComponent
getComponentId, getComponentState, getComponentStatusMessage, quiesce, start, stop
-
Methods inherited from interface org.symphonyoss.s2.fugue.IFugueLifecycleComponent
getLifecycleState
-
Methods inherited from interface org.symphonyoss.s2.fugue.pubsub.IPublisherManager
getMaximumMessageSize, getPublisherByName
-
-
-
-
Constructor Detail
-
AbstractPublisherManager
protected AbstractPublisherManager(Class<T> builtType, AbstractPublisherManager.Builder<?,T> builder)
-
-
Method Detail
-
getPublisherByName
public IPublisher getPublisherByName(String topicId)
Description copied from interface:IPublisherManagerGet the IPublisher for the given named topic.- Specified by:
getPublisherByNamein interfaceIPublisherManager- Parameters:
topicId- The actual name of a topic.- Returns:
- The publisher for the required topic.
-
getPublisherByName
public IPublisher getPublisherByName(String serviceId, String topicId)
Description copied from interface:IPublisherManagerGet the IPublisher for the given named topic.- Specified by:
getPublisherByNamein interfaceIPublisherManager- Parameters:
serviceId- The ID of the service which owns the topic.topicId- The actual name of a topic.- Returns:
- The publisher for the required topic.
-
assertConfigurable
protected void assertConfigurable()
-
setLifeCycleState
protected void setLifeCycleState(org.symphonyoss.s2.fugue.FugueLifecycleState arg0)
-
getLifecycleState
public org.symphonyoss.s2.fugue.FugueLifecycleState getLifecycleState()
-
-