public class CachingParameters extends Object
Modifier and Type | Class and Description |
---|---|
static class |
CachingParameters.Builder
The builder for the caching parameters.
|
Constructor and Description |
---|
CachingParameters(String amount,
Date expirationDate)
Deprecated.
Superseded by
CachingParameters.Builder .
Creates caching parameters with the given parameters. |
Modifier and Type | Method and Description |
---|---|
String |
getAmount()
The amount of data to cache for the given stream.
|
Long |
getBandwidth()
See
CachingParameters.Builder.bandwidth(Long) for field information |
Date |
getExpirationDate()
The expiration date of the cached data.
|
@Deprecated public CachingParameters(String amount, Date expirationDate)
CachingParameters.Builder
.
amount
- The amount of data to cache. (NonNull)expirationDate
- The expiration date of the cached data. (Nullable)- This constructor is kept for legacy purposes. - New fields will no longer be added to the constructor and must be set through the builder.
public String getAmount()
- A number in seconds. - A percentage string (XX%) for a proportion of the content duration.
public Date getExpirationDate()
public Long getBandwidth()
CachingParameters.Builder.bandwidth(Long)
for field information