public static class CachingParameters.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CachingParameters.Builder |
amount(String amount)
Sets the amount of data to cache for the given stream.
|
CachingParameters.Builder |
bandwidth(Long bandwidth)
Sets the upper bandwidth limit of the quality to cache.
|
CachingParameters |
build()
Builds the caching parameters.
|
CachingParameters.Builder |
expirationDate(Date expirationDate)
Sets the expiration date of the cached data.
|
public CachingParameters.Builder amount(String amount)
amount
- The amount of data to cache, in seconds or percentage string (XX%). (NonNull)- A number in seconds. - A percentage string (XX%) for a proportion of the content duration.
public CachingParameters.Builder expirationDate(Date expirationDate)
expirationDate
- The expiration date of the cached data. (Nullable)- Must be a date in the future.
public CachingParameters.Builder bandwidth(Long bandwidth)
bandwidth
- The bandwidth between one and Long.MAX_VALUE
or null. (Nullable)
- This will take the quality with the highest bandwidth that is lower than the specified bandwidth.
- It should be a value between one and Long.MAX_VALUE
or null.
- In case the value is null, it defaults to the highest bandwidth possible.
public CachingParameters build()