private void check() {
        if (!option(BoltServerOption.SERVER_MANAGE_CONNECTION_SWITCH)) {
            throw new UnsupportedOperationException(
                "Please enable connection manage feature of Rpc Server before call this method! See comments in constructor RpcServer(int port, boolean manageConnection) to find how to enable!");
        }
    }
check whether connection manage feature enabled
src/main/java/com/alipay/remoting/rpc/RpcServer.java