You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2018/08/06 02:38:59 UTC

[GitHub] zhengyangyong commented on a change in pull request #852: [SCB-688] vertx rest server not accept too many connection

zhengyangyong commented on a change in pull request #852: [SCB-688] vertx rest server not accept too many connection
URL: https://github.com/apache/incubator-servicecomb-java-chassis/pull/852#discussion_r207763003
 
 

 ##########
 File path: foundations/foundation-vertx/src/main/java/org/apache/servicecomb/foundation/vertx/ClientEvent.java
 ##########
 @@ -20,21 +20,35 @@
 /**
  * Notice: this event will raised in vertx eventloop thread, so do not run any block code
  */
-public class ClientClosedEvent {
+public class ClientEvent {
   private final String address;
 
+  private final EventType eventType;
+
+  private final ServerType serverType;
+
   private final int totalConnectedCount;
 
   public String getAddress() {
     return address;
   }
 
+  public EventType getEventType() {
+    return eventType;
+  }
+
+  public ServerType getServerType() {
+    return serverType;
+  }
+
   public int getTotalConnectedCount() {
     return totalConnectedCount;
   }
 
-  public ClientClosedEvent(String address, int totalConnectedCount) {
+  public ClientEvent(String address, EventType eventType, ServerType serverType, int totalConnectedCount) {
 
 Review comment:
   that's great,thanks, done.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services