CacheClientFactory
public
final
class
CacheClientFactory
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.CacheClientFactory |
Một nhà máy tạo một thực thể singleton của ICacheClient.
Tóm tắt
Hàm khởi tạo công khai | |
|---|---|
CacheClientFactory()
|
|
Phương thức công khai | |
|---|---|
static
ICacheClient
|
createCacheClient(File workFolder, String instanceName)
Tạo một thực thể singleton của |
Hàm khởi tạo công khai
CacheClientFactory
public CacheClientFactory ()
Phương thức công khai
createCacheClient
public static ICacheClient createCacheClient (File workFolder, String instanceName)
Tạo một thực thể singleton của ICacheClient.
Chỉ một thực thể singleton sẽ được tạo và chia sẻ ở mọi nơi trong lệnh gọi này. Phương thức này an toàn với luồng.
| Tham số | |
|---|---|
workFolder |
File: Thư mục công việc nơi ứng dụng tạo tệp tạm thời. |
instanceName |
String: Tên thực thể của API thực thi từ xa. |
| Giá trị trả về | |
|---|---|
ICacheClient |
Một bản sao của ICacheClient. |