コード例 #1
0
  @Override
  public void close(String reason) {

    if (isClosed.compareAndSet(false, true)) {
      for (BackendConnection node : target.values()) {
        node.close("client closed ");
      }
      clearHandlesResources();
    }
  }
コード例 #2
0
 /** {@link ServerConnection#isClosed()} must be true before invoking this */
 public void terminate() {
   for (BackendConnection node : target.values()) {
     node.close("client closed ");
   }
   clearHandlesResources();
 }