public static class NullImplementation.NullBackingMapManagerContext extends Object implements BackingMapManagerContext
| Modifier and Type | Field and Description |
|---|---|
static NullImplementation.NullBackingMapManagerContext |
INSTANCE
Singleton instance.
|
DECO_CUSTOM, DECO_EXPIRY, DECO_STORE| Modifier and Type | Method and Description |
|---|---|
Object |
addInternalValueDecoration(Object oValue, int nDecorId, Object oDecor)
Decorate a specified value in the internal form with a specified decoration in the "normal" Object form.
|
Map |
getBackingMap(String sCacheName)
Obtain a reference to the backing map that corresponds to the specified cache name.
|
BackingMapContext |
getBackingMapContext(String sCacheName)
Obtain a reference to the
BackingMapContext that corresponds to the specified cache name. |
CacheService |
getCacheService()
Return the CacheService associated with this context.
|
ClassLoader |
getClassLoader()
Return the ClassLoader associated with this context.
|
XmlElement |
getConfig()
Determine the current configuration of the associated BackingMapManager.
|
Object |
getInternalValueDecoration(Object oValue, int nDecorId)
Obtain a decoration from the specified value in the internal form.
|
Converter |
getKeyFromInternalConverter()
Return a converter that allows the manager (or a backing map managed thereby) to convert a key object from its internal form (as managed by the CacheService) into its "normal" (Object) form.
|
int |
getKeyPartition(Object oKey)
Determine the partition to which the specified key belongs.
|
Converter |
getKeyToInternalConverter()
Return a converter that allows the manager (or a backing map managed thereby) to convert a key object into its internal form as managed by the CacheService.
|
BackingMapManager |
getManager()
Return the BackingMapManager this object is a context for.
|
Set |
getPartitionKeys(String sCacheName, int nPartition)
Obtain a collection of keys in the internal format that belong to the specified partition for the specified backing map.
|
Converter |
getValueFromInternalConverter()
Return a converter that allows the manager (or a backing map managed thereby) to convert a value object from its internal form (as managed by the CacheService) into its "normal" (Object) form.
|
Converter |
getValueToInternalConverter()
Return a converter that allows the manager (or a backing map managed thereby) to convert a value object into its internal form as managed by the CacheService.
|
boolean |
isInternalValueDecorated(Object oValue, int nDecorId)
Check whether or not the specified value in the internal form is decorated.
|
boolean |
isKeyOwned(Object oKey)
Determines whether or not the specified key (in the internal format) is managed (i.e. controlled) by this service member.
|
Object |
removeInternalValueDecoration(Object oValue, int nDecorId)
Remove a decoration from the specified value in the internal form.
|
void |
setClassLoader(ClassLoader loader)
Assign the ClassLoader this context is associated with.
|
void |
setConfig(XmlElement xml)
Specify the configuration for the associated BackingMapManager.
|
public static final NullImplementation.NullBackingMapManagerContext INSTANCE
public BackingMapManager getManager()
getManager in interface BackingMapManagerContextpublic CacheService getCacheService()
getCacheService in interface BackingMapManagerContextpublic ClassLoader getClassLoader()
getClassLoader in interface BackingMapManagerContextpublic void setClassLoader(ClassLoader loader)
setClassLoader in interface BackingMapManagerContextloader - the ClassLoader associated with this contextpublic Converter getKeyToInternalConverter()
getKeyToInternalConverter in interface BackingMapManagerContextpublic Converter getKeyFromInternalConverter()
getKeyFromInternalConverter in interface BackingMapManagerContextpublic Converter getValueToInternalConverter()
getValueToInternalConverter in interface BackingMapManagerContextpublic Converter getValueFromInternalConverter()
getValueFromInternalConverter in interface BackingMapManagerContextpublic boolean isKeyOwned(Object oKey)
isKeyOwned in interface BackingMapManagerContextoKey - the resource key in the internal formatpublic int getKeyPartition(Object oKey)
getKeyPartition in interface BackingMapManagerContextoKey - a key in its internal formatpublic Set getPartitionKeys(String sCacheName, int nPartition)
getPartitionKeys in interface BackingMapManagerContextsCacheName - the cache name for the backing map to retrieve the set of keys fornPartition - the partition IDpublic Map getBackingMap(String sCacheName)
getBackingMap in interface BackingMapManagerContextsCacheName - the cache namepublic Object addInternalValueDecoration(Object oValue, int nDecorId, Object oDecor)
internal converter to either passed-in or returned internal values will produce identical values in Object form.addInternalValueDecoration in interface BackingMapManagerContextoValue - a value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesoDecor - a decoration value in Object formpublic Object removeInternalValueDecoration(Object oValue, int nDecorId)
internal converter to either passed-in or returned internal values will produce identical values in Object form.removeInternalValueDecoration in interface BackingMapManagerContextoValue - a decorated value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuespublic boolean isInternalValueDecorated(Object oValue, int nDecorId)
isInternalValueDecorated in interface BackingMapManagerContextoValue - a decorated value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuespublic Object getInternalValueDecoration(Object oValue, int nDecorId)
getInternalValueDecoration in interface BackingMapManagerContextoValue - a decorated value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuespublic BackingMapContext getBackingMapContext(String sCacheName)
BackingMapContext that corresponds to the specified cache name.
Note: calling this method will not create a backing map for the specified cache name; it will return null if the cache has yet to be used (e.g. via ConfigurableCacheFactory.ensureCache call) or has been destroyed
getBackingMapContext in interface BackingMapManagerContextsCacheName - the cache namepublic XmlElement getConfig()
getConfig in interface BackingMapManagerContextgetConfig in interface XmlConfigurablepublic void setConfig(XmlElement xml)
setConfig in interface BackingMapManagerContextsetConfig in interface XmlConfigurablexml - the XML configuration