public class TypeBasedCacheDistributionPolicy extends DefaultCacheDistributionPolicy implements CacheDistributionPolicy
| Constructor and Description |
|---|
TypeBasedCacheDistributionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getExcludedTypes()
Gets the excluded types, if configured.
|
Set<String> |
getIncludedTypes()
Gets the included types, if configured.
|
String |
selectCache(OpenJPAStateManager sm,
Object context)
Selects the name of the cache where the given managed proxy object state be cached.
|
void |
setExcludedTypes(String types)
Sets excluded types from a semicolon separated list of type names.
|
void |
setIncludedTypes(String types)
Sets included types from a semicolon separated list of type names.
|
endConfiguration, setConfiguration, startConfigurationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitendConfiguration, setConfiguration, startConfigurationpublic void setExcludedTypes(String types)
public void setIncludedTypes(String types)
public String selectCache(OpenJPAStateManager sm, Object context)
CacheDistributionPolicyselectCache in interface CacheDistributionPolicyselectCache in class DefaultCacheDistributionPolicysm - 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.Copyright © 2006–2017 Apache Software Foundation. All rights reserved.