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, startConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
endConfiguration, setConfiguration, startConfiguration
public void setExcludedTypes(String types)
public void setIncludedTypes(String types)
public String selectCache(OpenJPAStateManager sm, 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.Copyright © 2006–2018 Apache Software Foundation. All rights reserved.