This is an automated email from the ASF dual-hosted git repository.

jinrongtong pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 913527a08 [ISSUE #5149] 
remove:org/apache/rocketmq/example/simple/TestProducer.java
913527a08 is described below

commit 913527a085296ba2ff9371c257bbf0998bebd1b1
Author: liyijuan <[email protected]>
AuthorDate: Thu Sep 22 08:43:39 2022 +0800

    [ISSUE #5149] remove:org/apache/rocketmq/example/simple/TestProducer.java
---
 .../rocketmq/example/simple/TestProducer.java      | 54 ----------------------
 1 file changed, 54 deletions(-)

diff --git 
a/example/src/main/java/org/apache/rocketmq/example/simple/TestProducer.java 
b/example/src/main/java/org/apache/rocketmq/example/simple/TestProducer.java
deleted file mode 100644
index 576f9cb6f..000000000
--- a/example/src/main/java/org/apache/rocketmq/example/simple/TestProducer.java
+++ /dev/null
@@ -1,54 +0,0 @@
-/*
- * Licensed to the Apache Software Foundation (ASF) under one or more
- * contributor license agreements.  See the NOTICE file distributed with
- * this work for additional information regarding copyright ownership.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.apache.rocketmq.example.simple;
-
-import org.apache.rocketmq.client.QueryResult;
-import org.apache.rocketmq.client.exception.MQClientException;
-import org.apache.rocketmq.client.producer.DefaultMQProducer;
-import org.apache.rocketmq.client.producer.SendResult;
-import org.apache.rocketmq.common.message.Message;
-import org.apache.rocketmq.common.message.MessageExt;
-import org.apache.rocketmq.remoting.common.RemotingHelper;
-
-public class TestProducer {
-    public static void main(String[] args) throws MQClientException, 
InterruptedException {
-        DefaultMQProducer producer = new 
DefaultMQProducer("ProducerGroupName");
-        producer.start();
-
-        for (int i = 0; i < 1; i++)
-            try {
-                {
-                    Message msg = new Message("TopicTest1",
-                        "TagA",
-                        "key113",
-                        "Hello 
world".getBytes(RemotingHelper.DEFAULT_CHARSET));
-                    SendResult sendResult = producer.send(msg);
-                    System.out.printf("%s%n", sendResult);
-
-                    QueryResult queryMessage =
-                        producer.queryMessage("TopicTest1", "key113", 10, 0, 
System.currentTimeMillis());
-                    for (MessageExt m : queryMessage.getMessageList()) {
-                        System.out.printf("%s%n", m);
-                    }
-                }
-
-            } catch (Exception e) {
-                e.printStackTrace();
-            }
-        producer.shutdown();
-    }
-}

Reply via email to