|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
com.tangosol.util.Base
com.tangosol.net.AbstractBackingMapManager
com.tangosol.net.DefaultConfigurableCacheFactory.Manager
public class DefaultConfigurableCacheFactory.Manager
BackingMapManager implementation that uses the configuration XML to create the required backing maps and provides client access to those maps.
Field Summary | |
---|---|
protected java.util.Map |
m_mapBackingMap The map of backing maps keyed by corresponding cache names. |
protected java.util.Map |
m_mapBackingMapListeners The map of backing map listeners keyed by the corresponding backing map references. |
Constructor Summary | |
---|---|
DefaultConfigurableCacheFactory.Manager() |
Method Summary | |
---|---|
java.util.Map |
getBackingMap(java.lang.String sName) Get the backing Map associated with a given cache. |
DefaultConfigurableCacheFactory |
getCacheFactory() Obtain the "container" DefaultConfigurableCacheFactory that created this manager and which this manager is bound to. |
void |
init(BackingMapManagerContext context) Called by a CacheService to indicate to this manager that the manager is being associated with the CacheService. |
java.util.Map |
instantiateBackingMap(java.lang.String sName) Instantiate a [thread safe] Map that should be used by a CacheService to store cached values for a NamedCache with the specified name. |
boolean |
isBackingMapPersistent(java.lang.String sName) Determine if the contents of the Map that is used by a CacheService to store cached values for a NamedCache with the specified name should be persisted. |
void |
releaseBackingMap(java.lang.String sName, java.util.Map map) Release the specified Map that was created using the BackingMapManager.instantiateBackingMap(String) method. |
protected void |
setBackingMap(java.lang.String sName, java.util.Map map) Associate the specified backing Map with a given name. |
Methods inherited from class com.tangosol.net.AbstractBackingMapManager |
---|
getContext |
Field Detail |
---|
protected java.util.Map m_mapBackingMap
protected java.util.Map m_mapBackingMapListeners
Constructor Detail |
---|
public DefaultConfigurableCacheFactory.Manager()
Method Detail |
---|
public void init(BackingMapManagerContext context)
Important note: BackingMapManager cannot be associated with more then one instance of a CacheService. However, in a situation when a CacheService automatically restarts, it is possible that this manager instance is re-used by a newly created (restarted) CacheService calling this method once again providing a new context.
init
in interface BackingMapManager
init
in class AbstractBackingMapManager
context
- the BackingMapManagerContext object for this BackingMapManagerpublic java.util.Map instantiateBackingMap(java.lang.String sName)
If the contents of the Map can be modified by anything other than the CacheService itself (e.g. if the Map automatically expires its entries periodically or size-limits its contents), then the returned object must implement the ObservableMap interface.
sName
- the name of the NamedCache for which this backing map is being createdpublic boolean isBackingMapPersistent(java.lang.String sName)
sName
- the name of the NamedCachepublic void releaseBackingMap(java.lang.String sName, java.util.Map map)
BackingMapManager.instantiateBackingMap(String)
method. This method is invoked by the CacheService when the CacheService no longer requires the specified Map object.releaseBackingMap
in interface BackingMapManager
releaseBackingMap
in class AbstractBackingMapManager
sName
- the name of the NamedCache for which the specified Map object has acted as the backing mapmap
- the Map object that is being releasedpublic java.util.Map getBackingMap(java.lang.String sName)
sName
- the cache nameprotected void setBackingMap(java.lang.String sName, java.util.Map map)
sName
- the cache namemap
- the backing map associated with the specified namepublic DefaultConfigurableCacheFactory getCacheFactory()
|
Oracle® Fusion Middleware Java API Reference for Oracle Coherence 12c (12.1.3.0.0) E47890-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |