BatchChannel

public class BatchChannel
extends Object

java.lang.Object
   ↳ com.android.tradefed.result.resultdb.BatchChannel<T>


Helper class to batch upload test result and artifacts.

Summary

Nested classes

interface BatchChannel.BatchUploadAction<T>

Action to be performed when a batch of items is ready to be uploaded. 

Public constructors

BatchChannel(int maxBatchSize, String itemName, BatchUploadAction<T> batchUploadAction)

Public methods

void enqueue(T item)
void finalizeUpload()

Public constructors

BatchChannel

public BatchChannel (int maxBatchSize, 
                String itemName, 
                BatchUploadAction<T> batchUploadAction)

Parameters
maxBatchSize int

itemName String

batchUploadAction BatchUploadAction

Public methods

enqueue

public void enqueue (T item)

Parameters
item T

finalizeUpload

public void finalizeUpload ()