public interface ICacheManager
Modifier and Type | Method and Description |
---|---|
void |
addCacheConfig(SessionConfig sessionConfig,
ICacheConfig cacheConfig,
ITransaction transaction)
Adds a cacheConfig to persistence.
|
ICacheConfig |
createCacheConfig(String id)
Creates an
ICacheConfig transient instance. |
void |
deleteCacheConfig(SessionConfig sessionConfig,
ICacheConfig cacheConfig,
ITransaction transaction)
Deletes a cacheConfig from persistence.
|
int |
getCacheCapacity(String cacheId)
Returns the capacity to be used for the specified cache.
|
ICacheConfig |
getCacheConfig(SessionConfig sessionConfig,
String cacheConfigId,
ITransaction transaction)
Returns a persistent cacheConfig instance.
|
int getCacheCapacity(String cacheId)
cacheId
- the cache's identifier.ICacheConfig createCacheConfig(String id) throws PortalException
ICacheConfig
transient instance.id
- the id for the instance to be created.PortalException
addCacheConfig(SessionConfig, ICacheConfig, ITransaction)
void addCacheConfig(SessionConfig sessionConfig, ICacheConfig cacheConfig, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.cacheConfig
- the transient cacheConfig instance to be persisted.transaction
- the transaction for persistence access.PortalException
ICacheConfig getCacheConfig(SessionConfig sessionConfig, String cacheConfigId, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.cacheConfigId
- the cacheConfig's identifier.transaction
- the transaction for persistence access.PortalObjectNotFoundException
- if no cacheConfig with such id was found.PortalException
void deleteCacheConfig(SessionConfig sessionConfig, ICacheConfig cacheConfig, ITransaction transaction) throws PortalException
sessionConfig
- the user session information.cacheConfig
- the persistent cacheConfig instance to be deleted.transaction
- the transaction for persistence access.PortalException
LumisXP 12.5.0.200928 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.