-
- All Implemented Interfaces:
public class CachingParameters.BuilderThe builder for the caching parameters.
-
-
Method Summary
Modifier and Type Method Description CachingParameters.Builderamount(@NonNull() String amount)Sets the amount of data to cache for the given stream. CachingParameters.BuilderexpirationDate(@Nullable() Date expirationDate)Sets the expiration date of the cached data. CachingParameters.Builderbandwidth(Long bandwidth)Sets the upper bandwidth limit of the quality to cache. CachingParametersbuild()Builds the caching parameters. -
-
Method Detail
-
amount
CachingParameters.Builder amount(@NonNull() String amount)
Sets the amount of data to cache for the given stream. Possible formats:
- A number in seconds.
- A percentage string (XX%) for a proportion of the content duration.
Default: "100%"
- Parameters:
amount- The amount of data to cache, in seconds or percentage string (XX%).
-
expirationDate
CachingParameters.Builder expirationDate(@Nullable() Date expirationDate)
Sets the expiration date of the cached data.
- Must be a date in the future.
Default: 30 minutes after starting the caching task.
- Parameters:
expirationDate- The expiration date of the cached data.
-
bandwidth
CachingParameters.Builder bandwidth(Long bandwidth)
Sets the upper bandwidth limit of the quality to cache.
- This will take the quality with the highest bandwidth that is lower than the specified bandwidth.
- It should be a value between one and MAX_VALUE or null.
- In case the value is null, it defaults to the highest bandwidth possible.
- Parameters:
bandwidth- The bandwidth between one and MAX_VALUE or null.
-
build
CachingParameters build()
Builds the caching parameters.
-
-
-
-