public static IClientRPCService.Iface newSynchronizedClient(IClientRPCService.Iface client) {
    return (IClientRPCService.Iface)
        Proxy.newProxyInstance(
            RpcUtils.class.getClassLoader(),
            new Class[] {IClientRPCService.Iface.class},
            new SynchronizedHandler(client));
  }
if resizeIfNecessary is called continuously with a small size for more than
MAX_BUFFER_OVERSIZE_TIME times, we will shrink the buffer to reclaim space.
iotdb-client/service-rpc/src/main/java/org/apache/iotdb/rpc/RpcUtils.java