public class CacheInfo extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CACHE_SCOPE_GLOBAL
The cache scope global.
|
static int |
CACHE_SCOPE_NONE
The cache scope none.
|
static int |
CACHE_SCOPE_PORTLET_CONTEXT
The cache scope portlet context.
|
static int |
CACHE_SCOPE_PORTLET_SESSION
The cache scope portlet session.
|
| Constructor and Description |
|---|
CacheInfo(String itemKey,
int scope,
IServiceInvoker invoker,
Object request,
javax.portlet.PortletContext context,
boolean isAsyncCacheRefreshing)
Instantiates a new cache info.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
getContext()
Gets the context.
|
long |
getExpirationDelay()
Gets the expiration delay.
|
IServiceInvoker |
getInvoker()
Gets the invoker.
|
String |
getItemKey()
Gets the item key.
|
Object |
getRequest()
Gets the request.
|
int |
getScope()
Gets the scope.
|
boolean |
isAsyncCacheRefreshing()
Checks if is async cache refreshing.
|
boolean |
isForceNOTReload()
Checks if is force not reload.
|
boolean |
isForceReload()
Checks if is force reload.
|
void |
setAsyncCacheRefreshing(boolean isAsyncCacheRefreshing)
Sets the async cache refreshing.
|
void |
setContext(javax.portlet.PortletContext context)
Sets the context.
|
void |
setExpirationDelay(long expirationDelay)
Sets the expiration delay.
|
void |
setForceNOTReload(boolean forceNOTReload)
Sets the force not reload.
|
void |
setForceReload(boolean forceReload)
Sets the force reload.
|
void |
setInvoker(IServiceInvoker invoker)
Sets the invoker.
|
void |
setItemKey(String itemKey)
Sets the item key.
|
void |
setRequest(Object request)
Sets the request.
|
void |
setScope(int scope)
Sets the scope.
|
public static int CACHE_SCOPE_NONE
public static int CACHE_SCOPE_PORTLET_SESSION
public static int CACHE_SCOPE_PORTLET_CONTEXT
public static int CACHE_SCOPE_GLOBAL
public CacheInfo(String itemKey, int scope, IServiceInvoker invoker, Object request, javax.portlet.PortletContext context, boolean isAsyncCacheRefreshing)
itemKey - the item Key of the cache elementscope - the scopeinvoker - the applicative invoker that will compute the cache contentrequest - the requestcontext - the contextisAsyncCacheRefreshing - the is async cache refreshingpublic boolean isForceNOTReload()
public void setForceNOTReload(boolean forceNOTReload)
forceNOTReload - the new force not reloadpublic boolean isForceReload()
public void setForceReload(boolean forceReload)
forceReload - the new force reloadpublic boolean isAsyncCacheRefreshing()
public void setAsyncCacheRefreshing(boolean isAsyncCacheRefreshing)
isAsyncCacheRefreshing - the new async cache refreshingpublic Object getContext()
public void setContext(javax.portlet.PortletContext context)
context - the new contextpublic long getExpirationDelay()
public void setExpirationDelay(long expirationDelay)
expirationDelay - the new expiration delaypublic int getScope()
public void setScope(int scope)
scope - the new scopepublic Object getRequest()
public void setRequest(Object request)
request - the new requestpublic String getItemKey()
public void setItemKey(String itemKey)
itemKey - the new item keypublic IServiceInvoker getInvoker()
public void setInvoker(IServiceInvoker invoker)
invoker - the new invokerCopyright © 2021. All rights reserved.