jonyangx commented on a change in pull request #641:
URL: 
https://github.com/apache/incubator-eventmesh/pull/641#discussion_r766313579



##########
File path: 
eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/grpc/Publisher.java
##########
@@ -0,0 +1,43 @@
+package org.apache.eventmesh.client.grpc;
+
+import io.grpc.ManagedChannel;
+import io.grpc.ManagedChannelBuilder;
+import org.apache.eventmesh.client.grpc.config.ClientConfig;
+import org.apache.eventmesh.common.protocol.grpc.protos.PublisherServiceGrpc;
+import org.apache.eventmesh.common.protocol.grpc.protos.Message;
+import org.apache.eventmesh.common.protocol.grpc.protos.Response;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class Publisher {
+
+    private static Logger logger = LoggerFactory.getLogger(Publisher.class);
+
+    private ClientConfig clientConfig;
+
+    private ManagedChannel channel;
+
+    public Publisher(ClientConfig clientConfig) {
+        this.clientConfig = clientConfig;
+    }
+
+    public void start() {
+        channel = ManagedChannelBuilder
+                .forAddress(clientConfig.getServerAddr(), 
clientConfig.getServerPort())
+                .usePlaintext().build();
+    }
+
+    public void publish(String content) {

Review comment:
       suggest add return object.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to