Exemple #1
0
 /// <summary>
 /// 代理TransactionProducer实例的start方法
 /// </summary>
 public void start()
 {
     if (_producer != null)
     {
         _producer.start();
     }
 }
Exemple #2
0
        private void Form1_Load(object sender, EventArgs e)
        {
            factoryInfo = new ONSFactoryProperty();
            factoryInfo.setFactoryProperty(ONSFactoryProperty.AccessKey, Ons_AccessKey);
            factoryInfo.setFactoryProperty(ONSFactoryProperty.SecretKey, Ons_SecretKey);
            factoryInfo.setFactoryProperty(ONSFactoryProperty.ProducerId, Ons_ProducerId);
            //factoryInfo.setFactoryProperty(ONSFactoryProperty.ConsumerId, Ons_ConsumerId);
            factoryInfo.setFactoryProperty(ONSFactoryProperty.PublishTopics, Ons_Topic);
            factoryInfo.setFactoryProperty(ONSFactoryProperty.LogPath, "D://log/rocketmq/producer");

            LocalTransactionChecker myChecker = new MyLocalTransactionChecker();

            producer = ONSFactory.getInstance().createTransactionProducer(factoryInfo, myChecker);

            producer.start();
        }
Exemple #3
0
 public override void Start()
 {
     producer.start();
 }
Exemple #4
0
 public void InitializeOrderProducer()
 {
     myChecker           = new MyLocalTransactionChecker();
     transactionProducer = ONSFactory.getInstance().createTransactionProducer(factoryInfo, myChecker);
     transactionProducer.start();
 }
Exemple #5
0
 /// <summary>
 /// 代理TransactionProducer实例的start方法
 /// </summary>
 public void start()
 {
     _producer.start();
 }