public class PathCache extends Object
| Constructor and Description |
|---|
PathCache(int maxEntries,
long maxAge,
Map<String,PolicyEnforcerConfig.PathConfig> paths)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String uri) |
PolicyEnforcerConfig.PathConfig |
get(String uri) |
void |
put(String uri,
PolicyEnforcerConfig.PathConfig newValue) |
void |
remove(String key) |
int |
size() |
public PathCache(int maxEntries,
long maxAge,
Map<String,PolicyEnforcerConfig.PathConfig> paths)
maxEntries - the maximum number of entries to keep in the cachemaxAge - the time in milliseconds that an entry can stay in the cache. If -1, entries never expirepaths - the pre-configured pathspublic void put(String uri, PolicyEnforcerConfig.PathConfig newValue)
public boolean containsKey(String uri)
public PolicyEnforcerConfig.PathConfig get(String uri)
public void remove(String key)
public int size()
Copyright © 2022 JBoss by Red Hat. All rights reserved.