public class CacheManager extends Object implements ICacheManager
Constructor and Description |
---|
CacheManager() |
Modifier and Type | Method and Description |
---|---|
void |
addCacheConfig(SessionConfig sessionConfig,
ICacheConfig cacheConfig,
ITransaction transaction)
Adds a cacheConfig to persistence.
|
void |
adjustCacheCapacity(String cacheId)
Adjusts the cache capacity by adjusting it and sending a message
to the cluster for it to be adjusted.
|
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.
|
public void adjustCacheCapacity(String cacheId)
cacheId
- the cache id.newCapacity
- the new capacity.public int getCacheCapacity(String cacheId)
ICacheManager
getCacheCapacity
in interface ICacheManager
cacheId
- the cache's identifier.public ICacheConfig createCacheConfig(String id) throws PortalException
ICacheManager
ICacheConfig
transient instance.createCacheConfig
in interface ICacheManager
id
- the id for the instance to be created.PortalException
ICacheManager.addCacheConfig(SessionConfig, ICacheConfig, ITransaction)
public void addCacheConfig(SessionConfig sessionConfig, ICacheConfig cacheConfig, ITransaction transaction) throws PortalException
ICacheManager
addCacheConfig
in interface ICacheManager
sessionConfig
- the user session information.cacheConfig
- the transient cacheConfig instance to be persisted.transaction
- the transaction for persistence access.PortalException
public ICacheConfig getCacheConfig(SessionConfig sessionConfig, String cacheConfigId, ITransaction transaction) throws PortalException
ICacheManager
getCacheConfig
in interface ICacheManager
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
public void deleteCacheConfig(SessionConfig sessionConfig, ICacheConfig cacheConfig, ITransaction transaction) throws PortalException
ICacheManager
deleteCacheConfig
in interface ICacheManager
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.