public class ResponseCacheImpl extends java.lang.Object implements ResponseCache
| Constructor and Description |
|---|
ResponseCacheImpl(ContextUtil contextUtil)
The default constructor that initialises the cache with default values.
|
ResponseCacheImpl(ContextUtil contextUtil,
java.lang.Integer size,
java.lang.Long ttl)
Constructor that initialises the cache with the size and time to live
values.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCacheItem(java.lang.String request,
org.jboss.security.xacml.sunxacml.ctx.ResponseCtx response)
Adds an item to the cache.
|
org.jboss.security.xacml.sunxacml.ctx.ResponseCtx |
getCacheItem(java.lang.String request) |
void |
invalidate()
Invalidates the cache.
|
void |
setTTL(long ttl) |
public ResponseCacheImpl(ContextUtil contextUtil) throws PEPException
PEPExceptionpublic ResponseCacheImpl(ContextUtil contextUtil, java.lang.Integer size, java.lang.Long ttl) throws PEPException
size - size of the cachettl - maximum time for a cache item to be valid in millisecondsPEPExceptionpublic void setTTL(long ttl)
setTTL in interface ResponseCachepublic void addCacheItem(java.lang.String request,
org.jboss.security.xacml.sunxacml.ctx.ResponseCtx response)
ResponseCacheaddCacheItem in interface ResponseCacherequest - the request to hash and add.response - the response to addpublic org.jboss.security.xacml.sunxacml.ctx.ResponseCtx getCacheItem(java.lang.String request)
getCacheItem in interface ResponseCacherequest - the request to hash and retrievepublic void invalidate()
ResponseCacheinvalidate in interface ResponseCacheCopyright © 2014 DuraSpace. All Rights Reserved.