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

1 秒あたりのダウンストリーム スループット(キロビット単位)。

long whenMs

エポック(1970 年 1 月 1 日 00:00:00.000)からのミリ秒数。

int source

NetworkQualityObservationSource からの観測ソース。