public class PolicyCache extends EntitlementBaseCache<IdentityCacheKey,PolicyStatus>
Constructor and Description |
---|
PolicyCache(int timeout) |
Modifier and Type | Method and Description |
---|---|
Collection<PolicyStatus> |
getInvalidatedPolicies()
Read the invalidated policies in the local cache.
|
void |
invalidateCache()
Do invalidate all policy cache
|
void |
invalidateCache(String policyId,
String action)
Invalidate any policy with action.
|
boolean |
isInvalidate()
Check the state of expire in local cache.
|
static void |
updateLocalPolicyCacheMap(IdentityCacheKey identityCacheKey,
PolicyStatus policyStatus)
This method triggered by cache entry listener.
|
addToCache, clear, clearCacheEntry, getValueFromCache, initCacheBuilder, setCacheEntryCreatedListener, setCacheEntryUpdatedListener, updateToCache
public static void updateLocalPolicyCacheMap(IdentityCacheKey identityCacheKey, PolicyStatus policyStatus)
identityCacheKey
- policyStatus
- public void invalidateCache()
public boolean isInvalidate()
public void invalidateCache(String policyId, String action)
policyId
- action
- public Collection<PolicyStatus> getInvalidatedPolicies()
Copyright © 2016 WSO2. All rights reserved.