|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.tangosol.util.Base
com.tangosol.net.AbstractBackingMapManager
public abstract class AbstractBackingMapManager
Abstract base of the BackingMapManager implementations.
Constructor Summary | |
---|---|
protected |
AbstractBackingMapManager()
Default constructor. |
Method Summary | |
---|---|
BackingMapManagerContext |
getContext()
Determine the current BackingMapManagerContext for this BackingMapManager. |
void |
init(BackingMapManagerContext context)
Called by a CacheService to indicate to this manager that the manager is being associated with the CacheService. |
abstract Map |
instantiateBackingMap(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. |
void |
releaseBackingMap(String sName,
Map map)
Release the specified Map that was created using the instantiateBackingMap(String) method. |
Constructor Detail |
---|
protected AbstractBackingMapManager()
Method Detail |
---|
public void init(BackingMapManagerContext context)
Important note: BackingMapManager cannot be assosiated 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
context
- the BackingMapManagerContext object for this BackingMapManagerpublic BackingMapManagerContext getContext()
getContext
in interface BackingMapManager
public abstract Map instantiateBackingMap(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.
instantiateBackingMap
in interface BackingMapManager
sName
- the name of the NamedCache for which this backing map
is being created
public void releaseBackingMap(String sName, Map map)
instantiateBackingMap(String)
method. This method is invoked
by the CacheService when the CacheService no longer requires the
specified Map object.
releaseBackingMap
in interface BackingMapManager
sName
- the name of the NamedCache for which the specified Map
object has acted as the backing mapmap
- the Map object that is being released
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |