public JMSSubscriber(string server,string userId, string password, string topicName,CallbackHandler handler,string filterCondition) { this.jmsServer = server; this.userId = userId; this.password = password; this.topicName = topicName; this.handler = handler; this.filterCondition = filterCondition; }
public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback, string filterCondition, List<string> pPermKeyList, bool pIsSuperUser) { this.topicName = topicName; this.callback = callback; handler = new CallbackHandler(callback, pPermKeyList, pIsSuperUser); handler.TopicName = this.topicName; JMSFactory factory = JMSFactory.getFactory(server, userId, pwd); subscriber = factory.GetInstance(topicName,handler,filterCondition); this.filterCondition = filterCondition; }
public Listener(string server, string userId, string pwd, string topicName, NotifyCallBack callback, string filterCondition, List <string> pPermKeyList, bool pIsSuperUser) { this.topicName = topicName; this.callback = callback; handler = new CallbackHandler(callback, pPermKeyList, pIsSuperUser); handler.TopicName = this.topicName; JMSFactory factory = JMSFactory.getFactory(server, userId, pwd); subscriber = factory.GetInstance(topicName, handler, filterCondition); this.filterCondition = filterCondition; }
public ISubscriber GetInstance(string topicName,CallbackHandler handler,string filterCondition) { ISubscriber subscriber = null; if (subscriberList.ContainsKey(topicName)) { subscriber = subscriberList[topicName]; } else { subscriber = new JMSSubscriber(tibcoServerName, tibcoUser, tibcoPwd, topicName, handler, filterCondition); } return subscriber; }
public ISubscriber GetInstance(string topicName, CallbackHandler handler, string filterCondition) { ISubscriber subscriber = null; if (subscriberList.ContainsKey(topicName)) { subscriber = subscriberList[topicName]; } else { subscriber = new JMSSubscriber(tibcoServerName, tibcoUser, tibcoPwd, topicName, handler, filterCondition); } return(subscriber); }
public JMSSubscriber(string server, string userId, string password, string topicName, CallbackHandler handler, string filterCondition) { this.jmsServer = server; this.userId = userId; this.password = password; this.topicName = topicName; this.handler = handler; this.filterCondition = filterCondition; }