public class TypeBasedCacheDistributionPolicy extends DefaultCacheDistributionPolicy implements CacheDistributionPolicy
Constructor and Description |
---|
TypeBasedCacheDistributionPolicy() |
Modifier and Type | Method and Description |
---|---|
java.util.Set<java.lang.String> |
getExcludedTypes()
Gets the excluded types, if configured.
|
java.util.Set<java.lang.String> |
getIncludedTypes()
Gets the included types, if configured.
|
java.lang.String |
selectCache(OpenJPAStateManager sm,
java.lang.Object context)
Selects the name of the cache where the given managed proxy object state be cached.
|
void |
setExcludedTypes(java.lang.String types)
Sets excluded types from a semicolon separated list of type names.
|
void |
setIncludedTypes(java.lang.String types)
Sets included types from a semicolon separated list of type names.
|
endConfiguration, setConfiguration, startConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endConfiguration, setConfiguration, startConfiguration
public java.util.Set<java.lang.String> getExcludedTypes()
public void setExcludedTypes(java.lang.String types)
public java.util.Set<java.lang.String> getIncludedTypes()
public void setIncludedTypes(java.lang.String types)
public java.lang.String selectCache(OpenJPAStateManager sm, java.lang.Object context)
CacheDistributionPolicy
selectCache
in interface CacheDistributionPolicy
selectCache
in class DefaultCacheDistributionPolicy
sm
- the managed proxy object to be cached. The actual managed instance can be accessed from the proxy
instance simply as sm.getManagedInstance()
.context
- the context of invocation. No specific semantics is attributed currently. Can be null.