Exemplo n.º 1
0
 /// <summary>
 /// 代理TransactionProducer实例的start方法
 /// </summary>
 public void start()
 {
     if (_producer != null)
     {
         _producer.start();
     }
 }
Exemplo n.º 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();
        }
Exemplo n.º 3
0
 public override void Start()
 {
     producer.start();
 }
Exemplo n.º 4
0
 public void InitializeOrderProducer()
 {
     myChecker           = new MyLocalTransactionChecker();
     transactionProducer = ONSFactory.getInstance().createTransactionProducer(factoryInfo, myChecker);
     transactionProducer.start();
 }
Exemplo n.º 5
0
 /// <summary>
 /// 代理TransactionProducer实例的start方法
 /// </summary>
 public void start()
 {
     _producer.start();
 }