Interface TimeToFirstByteEstimator
-
- All Known Implementing Classes:
ExponentialWeightedAverageTimeToFirstByteEstimator,PercentileTimeToFirstByteEstimator
@Deprecated public interface TimeToFirstByteEstimator
Deprecated.com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.Provides an estimate of the time to first byte of a transfer.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description longgetTimeToFirstByteEstimateUs()Deprecated.Returns the estimated time to first byte of the response body, in microseconds, orC.TIME_UNSETif no estimate is available.voidonTransferInitializing(DataSpec dataSpec)Deprecated.Called when a transfer is being initialized.voidonTransferStart(DataSpec dataSpec)Deprecated.Called when a transfer starts.voidreset()Deprecated.Resets the estimator.
-
-
-
Method Detail
-
getTimeToFirstByteEstimateUs
long getTimeToFirstByteEstimateUs()
Deprecated.Returns the estimated time to first byte of the response body, in microseconds, orC.TIME_UNSETif no estimate is available.
-
reset
void reset()
Deprecated.Resets the estimator.
-
onTransferInitializing
void onTransferInitializing(DataSpec dataSpec)
Deprecated.Called when a transfer is being initialized.- Parameters:
dataSpec- Describes the data for which the transfer is initialized.
-
onTransferStart
void onTransferStart(DataSpec dataSpec)
Deprecated.Called when a transfer starts.- Parameters:
dataSpec- Describes the data being transferred.
-
-