org.apache.openjpa.datacache
Interface CacheDistributionPolicy

A policy determines whether a given entity should be cached and if true, in which named partition of the
cache.
This policy is activated for each instance if and only if the cache settings specified in metadata
such as JPA specification defined @Cacheable annotation or OpenJPA specific
@DataCache annotation or configuration property
such as javax.persistence.sharedCache.mode determined the type of the instance being cachable.
For example, a specific policy will never be active for when javax.persistence.sharedCache.mode
is set to NONE.
Distribution Policies are configurable. So a specific policy can be configured as