public class PathCache extends Object
Constructor and Description |
---|
PathCache(int maxEntries,
long maxAge)
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)
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 expirepublic 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 © 2019 JBoss by Red Hat. All rights reserved.