FileDownloadCacheFactory

public class FileDownloadCacheFactory
extends Object

java.lang.Object
   ↳ com.android.tradefed.build.FileDownloadCacheFactory


Nhà máy để tạo FileDownloadCache

Tóm tắt

Hàm khởi tạo công khai

FileDownloadCacheFactory()

Phương thức công khai

FileDownloadCache getCache(File cacheDir)

Truy xuất FileDownloadCache bằng thư mục bộ nhớ đệm đã cho, tạo nếu cần.

static FileDownloadCacheFactory getInstance()

Lấy thực thể singleton của FileDownloadCacheFactory

Hàm khởi tạo công khai

FileDownloadCacheFactory

public FileDownloadCacheFactory ()

Phương thức công khai

getCache

public FileDownloadCache getCache (File cacheDir)

Truy xuất FileDownloadCache bằng thư mục bộ nhớ đệm đã cho, tạo nếu cần.

Xin lưu ý rằng bộ nhớ đệm giả định rằng quy trình này có quyền truy cập độc quyền vào thư mục cacheDir. Nếu nhiều quy trình TF sẽ chạy trên cùng một máy, thì mỗi quy trình PHẢI sử dụng các thư mục bộ nhớ đệm riêng biệt.

Tham số
cacheDir File: thư mục hệ thống tệp cục bộ để dùng làm bộ nhớ đệm

Giá trị trả về
FileDownloadCache FileDownloadCache cho cacheDir đã cho

getInstance

public static FileDownloadCacheFactory getInstance ()

Lấy thực thể singleton của FileDownloadCacheFactory

Giá trị trả về
FileDownloadCacheFactory