public class DefaultCacheDistributionPolicy extends Object implements CacheDistributionPolicy
name as specified by
the metadata.ClassMetaData.getDataCacheName()| Constructor and Description |
|---|
DefaultCacheDistributionPolicy() |
| Modifier and Type | Method and Description |
|---|---|
void |
endConfiguration() |
String |
selectCache(OpenJPAStateManager sm,
Object context)
Selects the name of the cache where the given managed proxy object state be cached.
|
void |
setConfiguration(Configuration conf) |
void |
startConfiguration() |
public String selectCache(OpenJPAStateManager sm, Object context)
CacheDistributionPolicyselectCache in interface CacheDistributionPolicysm - 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.public void endConfiguration()
endConfiguration in interface Configurablepublic void setConfiguration(Configuration conf)
setConfiguration in interface Configurablepublic void startConfiguration()
startConfiguration in interface ConfigurableCopyright © 2006-2014 Apache Software Foundation. All Rights Reserved.