public interface BackingMapManagerContext extends XmlConfigurable
| Modifier and Type | Field and Description |
|---|---|
static int |
DECO_CUSTOM
The decoration id for a client specific (opaque) value information.
|
static int |
DECO_EXPIRY
The decoration id for the value expiry information.
|
static int |
DECO_STORE
The decoration id for the persistent state of the decorated value.
|
| 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)
Deprecated.
As of Coherence 3.7, use of this method is discouraged. Instead, use
BackingMapContext.getBackingMapEntry(java.lang.Object). |
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.
|
static final int DECO_EXPIRY
static final int DECO_STORE
static final int DECO_CUSTOM
BackingMapManager getManager()
CacheService getCacheService()
ClassLoader getClassLoader()
void setClassLoader(ClassLoader loader)
loader - the ClassLoader associated with this contextConverter getKeyToInternalConverter()
Converter getKeyFromInternalConverter()
Converter getValueToInternalConverter()
Converter getValueFromInternalConverter()
boolean isKeyOwned(Object oKey)
oKey - the resource key in the internal formatClassCastException - if the passed key is not in the internal formatint getKeyPartition(Object oKey)
oKey - a key in its internal formatSet getPartitionKeys(String sCacheName, int nPartition)
sCacheName - the cache name for the backing map to retrieve the set of keys fornPartition - the partition IDMap getBackingMap(String sCacheName)
BackingMapContext.getBackingMapEntry(java.lang.Object).sCacheName - the cache nameBackingMapContext 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
sCacheName - the cache nameObject addInternalValueDecoration(Object oValue, int nDecorId, Object oDecor)
internal converter to either passed-in or returned internal values will produce identical values in Object form.oValue - a value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesoDecor - a decoration value in Object formObject removeInternalValueDecoration(Object oValue, int nDecorId)
internal converter to either passed-in or returned internal values will produce identical values in Object form.oValue - a decorated value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesboolean isInternalValueDecorated(Object oValue, int nDecorId)
oValue - a decorated value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesObject getInternalValueDecoration(Object oValue, int nDecorId)
oValue - a decorated value in the internal formnDecorId - a decoration identifier; valid decoration identifiers are any of the DECO_* constant valuesXmlElement getConfig()
getConfig in interface XmlConfigurablevoid setConfig(XmlElement xml)
setConfig in interface XmlConfigurablexml - the XML configurationIllegalStateException - if the object is not in a state that allows the configuration to be set; for example, if the manager has already been configured and cannot be reconfigured