NetworkQualityThroughputListener

public abstract class NetworkQualityThroughputListener


接聽程式,會收到網路品質估算器傳送的總處理量觀察資訊通知。

摘要

公用建構函式

公用方法

Executor
abstract void
onThroughputObservation(int throughputKbps, long whenMs, int source)

回報新的輸送量觀察結果。

公用建構函式

NetworkQualityThroughputListener

public NetworkQualityThroughputListener(Executor executor)
參數
Executor executor

回報觀察結果的執行器。

公用方法

getExecutor

public Executor getExecutor()

onThroughputObservation

public abstract void onThroughputObservation(int throughputKbps, long whenMs, int source)

回報新的輸送量觀察結果。

參數
int throughputKbps

下行吞吐量 (kbit/秒)。

long whenMs

自 Epoch 紀元時間 (1970 年 1 月 1 日 00:00:00.000) 起算的毫秒數。

int source

NetworkQualityObservationSource 的觀測來源。