Package org.jboss.security
Interface CacheableManager<T,K>
-
- All Known Implementing Classes:
JBossCachedAuthenticationManager
public interface CacheableManager<T,K>
An interface for managers that allow cached values.- Author:
- Marcus Moyses
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
containsKey(K key)
Checks if an entry exists in the cache.void
flushCache()
Flushes all entries from the cache.void
flushCache(K key)
Flushes one entry from the cache.Set<K>
getCachedKeys()
Returns a set of keys stored in the cache.void
setCache(T cache)
Sets the cache.
-
-
-
Method Detail
-
setCache
void setCache(T cache)
Sets the cache.- Parameters:
cache
- New cache to use.
-
flushCache
void flushCache()
Flushes all entries from the cache.
-
flushCache
void flushCache(K key)
Flushes one entry from the cache.- Parameters:
key
- Entry's key.
-
containsKey
boolean containsKey(K key)
Checks if an entry exists in the cache.- Parameters:
key
- Entry's key- Returns:
- true if there is an entry, false otherwise.
-
-