Package 

Interface MultiDataSource.ShortTtlHandler

    • Method Summary

      Modifier and Type Method Description
      abstract boolean isExpired(DataSpec dataSpec) Returns true if the provided DataSpec is expired.
      abstract DataSpec refresh(DataSpec dataSpec) Attempt to refresh an expired DataSpec.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isExpired

         abstract boolean isExpired(DataSpec dataSpec)

        Returns true if the provided DataSpec is expired.

        Parameters:
        dataSpec - The DataSpec containing an URI.
      • refresh

        @Nullable() abstract DataSpec refresh(DataSpec dataSpec)

        Attempt to refresh an expired DataSpec.

        Parameters:
        dataSpec - The DataSpec to refresh.