All Downloads are FREE. Search and download functionalities are using the official Maven repository.

javax.cache.configuration.package-info Maven / Gradle / Ivy

/**
 *  Copyright (c) 2011-2013 Terracotta, Inc.
 *  Copyright (c) 2011-2013 Oracle and/or its affiliates.
 *
 *  All rights reserved. Use is subject to license terms.
 */

/**
 * This package contains configuration classes and interfaces.
 * 

* Rather than configuration accepting user instances of interfaces for maximum * portability factories are configured instead, so that instances can be * instantiated where needed. To aid in this, FactoryBuilder can build factories * of the required type as shown in the following example. *


 *  MutableConfiguration<String, Integer> config = new MutableConfiguration<String, Integer>();
 *
 *  config.setTypes(String.class, Integer.class)
 *        .setStoreByValue(false)
 *        .setStatisticsEnabled(true)
 *        .setExpiryPolicyFactory(FactoryBuilder.factoryOf(
 *            new AccessedExpiryPolicy<String>(new Duration(TimeUnit.HOURS, 1))));
 * 
*

* {@link javax.cache.configuration.OptionalFeature}, though not specific to * cache configuration, allows application to determine the optional features * supported at runtime. * * @author Greg Luck * @since 1.0 */ package javax.cache.configuration;





© 2015 - 2025 Weber Informatics LLC | Privacy Policy