|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CacheInstanceManager
Acts as a buffer from how instances of Cache
are built/obtained.
Method Summary | |
---|---|
org.jboss.cache.Cache |
getCollectionCacheInstance()
Retrieve a handle to the Cache instance to be used for storing
collection data. |
org.jboss.cache.Cache |
getEntityCacheInstance()
Retrieve a handle to the Cache instance to be used for storing
entity data. |
org.jboss.cache.Cache |
getQueryCacheInstance()
Retrieve a handle to the Cache instance to be used for storing
query results. |
org.jboss.cache.Cache |
getTimestampsCacheInstance()
Retrieve a handle to the Cache instance to be used for storing
timestamps. |
void |
start(Settings settings,
Properties properties)
Lifecycle callback to perform any necessary initialization of the CacheInstanceManager. |
void |
stop()
Lifecycle callback to perform any necessary cleanup of the underlying CacheInstanceManager. |
Method Detail |
---|
org.jboss.cache.Cache getEntityCacheInstance()
Cache
instance to be used for storing
entity data.
org.jboss.cache.Cache getCollectionCacheInstance()
Cache
instance to be used for storing
collection data.
org.jboss.cache.Cache getQueryCacheInstance()
Cache
instance to be used for storing
query results.
org.jboss.cache.Cache getTimestampsCacheInstance()
Cache
instance to be used for storing
timestamps.
void start(Settings settings, Properties properties) throws CacheException
SessionFactoryImpl
.
settings
- The settings in effect.properties
- The defined cfg properties
CacheException
- Indicates problems starting the L2 cache impl; considered as
a sign to stop SessionFactory
building.void stop()
SessionFactory.close()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |