Package com.swiftmq.impl.topic.standard
Class TopicManagerImpl
java.lang.Object
TopicManager
com.swiftmq.impl.topic.standard.TopicManagerImpl
public class TopicManagerImpl
extends TopicManager
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addStaticSubscription
(String routerName, String topicName, boolean keepOnUnsubscribe) protected static String
concatName
(String[] tokenizedName) AbstractQueue
createQueue
(String queueName, Entity queueEntity) void
createTopic
(String topicName) void
deleteDurable
(String durableName, ActiveLogin activeLogin) void
deleteTopic
(String topicName) getDurableTopicName
(String durableName, ActiveLogin activeLogin) protected String
String[]
protected String
boolean
boolean
isTopicDefined
(String topicName) void
processTopicInfo
(TopicInfo topicInfo) boolean
void
removeRemoteSubscriptions
(String routerName) protected void
shutdown()
protected void
startup
(Configuration config) int
subscribe
(TopicImpl topic, Selector selector, boolean noLocal, String queueName, ActiveLogin activeLogin) int
subscribe
(TopicImpl topic, Selector selector, boolean noLocal, String queueName, ActiveLogin activeLogin, boolean forceCopy) subscribeDurable
(String durableName, TopicImpl topic, Selector selector, boolean noLocal, ActiveLogin activeLogin) subscribeDurable
(String durableName, TopicImpl topic, Selector selector, boolean noLocal, ActiveLogin activeLogin, Entity newEntity) void
unsubscribe
(int subscriberId) TopicImpl
verifyTopic
(TopicImpl topic)
-
Field Details
-
TOPIC_PREFIX
- See Also:
-
TOPIC_DELIMITER
- See Also:
-
TOPIC_DELIMITER_CHAR
public static final char TOPIC_DELIMITER_CHAR- See Also:
-
DURABLE_DELIMITER
- See Also:
-
DURABLE_TYPE
- See Also:
-
TOPIC_QUEUE
- See Also:
-
-
Constructor Details
-
TopicManagerImpl
public TopicManagerImpl()
-
-
Method Details
-
getTopicQueuePrefix
-
getTopicDelimiter
-
isDirectSubscriberSelection
public boolean isDirectSubscriberSelection() -
registerUsage
public boolean registerUsage() -
createQueue
- Throws:
QueueException
-
createTopic
- Throws:
TopicException
-
deleteTopic
- Throws:
TopicException
-
isTopicDefined
-
verifyTopic
public TopicImpl verifyTopic(TopicImpl topic) throws JMSException, InvalidDestinationException - Throws:
JMSException
InvalidDestinationException
-
concatName
-
subscribe
public int subscribe(TopicImpl topic, Selector selector, boolean noLocal, String queueName, ActiveLogin activeLogin) throws AuthenticationException - Throws:
AuthenticationException
-
subscribe
public int subscribe(TopicImpl topic, Selector selector, boolean noLocal, String queueName, ActiveLogin activeLogin, boolean forceCopy) throws AuthenticationException - Throws:
AuthenticationException
-
subscribeDurable
public String subscribeDurable(String durableName, TopicImpl topic, Selector selector, boolean noLocal, ActiveLogin activeLogin) throws AuthenticationException, QueueException, TopicException - Throws:
AuthenticationException
QueueException
TopicException
-
subscribeDurable
public String subscribeDurable(String durableName, TopicImpl topic, Selector selector, boolean noLocal, ActiveLogin activeLogin, Entity newEntity) throws AuthenticationException, QueueException, TopicException - Throws:
AuthenticationException
QueueException
TopicException
-
deleteDurable
public void deleteDurable(String durableName, ActiveLogin activeLogin) throws InvalidDestinationException, QueueException, UnknownQueueException, TopicException - Throws:
InvalidDestinationException
QueueException
UnknownQueueException
TopicException
-
getDurableTopicName
-
unsubscribe
public void unsubscribe(int subscriberId) -
getTopicNames
-
removeRemoteSubscriptions
-
processTopicInfo
- Throws:
Exception
-
addStaticSubscription
public void addStaticSubscription(String routerName, String topicName, boolean keepOnUnsubscribe) throws Exception - Throws:
Exception
-
startup
protected void startup(Configuration config) throws SwiftletException - Throws:
SwiftletException
-
shutdown
protected void shutdown() throws SwiftletException- Throws:
SwiftletException
-