Top Description Interfaces Classes Enums
[default module]

Package javax.cache.configuration


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))));

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

Interface Summary

Modifier and TypeInterface and Description
public interface
CacheEntryListenerConfiguration<
the type of keys
K
,
the type of values
V
>

Defines the configuration requirements for a CacheEntryListener and a Factory for its creation.

public interface
CompleteConfiguration<
the type of keys maintained the cache
K
,
the type of cached values
V
>

A read-only representation of the complete JCache javax.cache.Cache configuration.

public interface
Configuration<
the type of keys maintained the cache
K
,
the type of cached values
V
>

A basic read-only representation of a Cache configuration.

public interface
Factory<
the type of factory constructed
T
>

Constructs and returns a fully configured instance of a specific factory type.

Class Summary

Modifier and TypeClass and Description
public class
FactoryBuilder

A convenience class that defines generically typed static methods to aid in the building of Factory instances.

public class
MutableCacheEntryListenerConfiguration<
the type of keys maintained the cache
K
,
the type of cached values
V
>

A convenience class providing a mutable, serializable implementation of a CacheEntryListenerConfiguration.

public class
MutableConfiguration<
the type of keys maintained the cache
K
,
the type of cached values
V
>

A simple mutable implementation of a Configuration.

Enum Summary

Modifier and TypeEnum and Description
public enum
OptionalFeature

Optional features that may be present in an implementation.