pandaapo commented on code in PR #4653:
URL: https://github.com/apache/eventmesh/pull/4653#discussion_r1427755288
##########
eventmesh-sdks/eventmesh-sdk-java/src/main/java/org/apache/eventmesh/client/grpc/consumer/EventMeshGrpcConsumer.java:
##########
@@ -93,27 +96,26 @@ public void init() {
heartBeat();
}
+ /**
+ * Subscribes to an event at a specified URL(Webhook).
+ *
+ * @param subscriptionItems The list of subscription items.
+ * @param url The URL to subscribe to.
+ * @return A response containing information about the subscription result.
+ */
public Response subscribe(final List<SubscriptionItem> subscriptionItems,
final String url) {
Review Comment:
So "it is necessary to switch to a heartbeating method" means using another
heartbeat logic, which is `subscribeWebhook()` you extracted.
所以“it is necessary to switch to a heartbeating
method”意思是改用另一种心跳逻辑,即您提取出来的`subscribeWebhook()`方法。
--
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]