ByteStreamDownloader
public
class
ByteStreamDownloader
extends Object
java.lang.Object
|
↳ |
com.android.tradefed.cache.remote.ByteStreamDownloader
|
實作 ByteStream
gRPC 服務的 Read
方法的用戶端。
摘要
公用建構函式 |
ByteStreamDownloader(String instanceName, Channel channel, CallCredentials callCredentials, Duration callTimeout)
|
公用方法 |
ListenableFuture<Void>
|
downloadBlob(Digest digest, OutputStream out)
透過遠端 ByteStream 服務下載 BLOB。
|
公用建構函式
ByteStreamDownloader
public ByteStreamDownloader (String instanceName,
Channel channel,
CallCredentials callCredentials,
Duration callTimeout)
參數 |
instanceName |
String |
channel |
Channel |
callCredentials |
CallCredentials |
callTimeout |
Duration |
公用方法
downloadBlob
public ListenableFuture<Void> downloadBlob (Digest digest,
OutputStream out)
透過遠端 ByteStream
服務下載 BLOB。
傳回 |
ListenableFuture<Void> |
|