String policyName) {
VariablePolicyBuilder builder =
policyFactory.createVariablePolicyBuilder(PolicyType.AUDIO);
builder.setName(policyName);
CacheControlBuilder cacheControlBuilder =
policyFactory.createCacheControlBuilder();
cacheControlBuilder.setCacheThisPolicy(true);
cacheControlBuilder.setTimeToLive(1);
cacheControlBuilder.setRetryFailedRetrieval(true);
cacheControlBuilder.setRetryInterval(1);
cacheControlBuilder.setRetryMaxCount(2);
builder.setCacheControlBuilder(cacheControlBuilder);
constraints.applyConstraints(cacheControlBuilder);
return builder;
}