1 22 package org.jboss.mq.sm.none; 23 24 import java.util.Collection ; 25 import java.util.Collections ; 26 27 import javax.jms.JMSException ; 28 29 import org.jboss.mq.DurableSubscriptionID; 30 import org.jboss.mq.SpyTopic; 31 import org.jboss.mq.sm.AbstractStateManager; 32 import org.jboss.mq.sm.StateManager; 33 import org.jboss.util.NotImplementedException; 34 35 41 public class NullStateManager extends AbstractStateManager 42 { 43 protected void checkLoggedOnClientId(String clientID) throws JMSException 44 { 45 return; 46 } 47 48 protected DurableSubscription getDurableSubscription(DurableSubscriptionID sub) throws JMSException 49 { 50 throw new NotImplementedException("Durable subscriptions are not supported"); 51 } 52 53 public Collection getDurableSubscriptionIdsForTopic(SpyTopic topic) throws JMSException 54 { 55 return Collections.EMPTY_SET; 56 } 57 58 protected String getPreconfClientId(String login, String passwd) throws JMSException 59 { 60 return null; 61 } 62 63 protected void removeDurableSubscription(DurableSubscription ds) throws JMSException 64 { 65 throw new NotImplementedException("Durable subscriptions are not supported"); 66 } 67 68 protected void saveDurableSubscription(DurableSubscription ds) throws JMSException 69 { 70 throw new NotImplementedException("Durable subscriptions are not supported"); 71 } 72 73 public StateManager getInstance() 74 { 75 return this; 76 } 77 } 78 | Popular Tags |