public class CachingResourceManager extends Object implements ResourceManager
EMPTY_RESOURCE_MANAGER| Constructor and Description |
|---|
CachingResourceManager(int metadataCacheSize,
long maxFileSize,
DirectBufferCache dataCache,
ResourceManager underlyingResourceManager,
int maxAge) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
int |
getMaxAge() |
long |
getMaxFileSize() |
CachedResource |
getResource(String p)
Returns a resource for the given path.
|
void |
invalidate(String path) |
public CachingResourceManager(int metadataCacheSize,
long maxFileSize,
DirectBufferCache dataCache,
ResourceManager underlyingResourceManager,
int maxAge)
public CachedResource getResource(String p) throws IOException
ResourceManagergetResource in interface ResourceManagerp - The pathIOExceptionpublic void invalidate(String path)
public long getMaxFileSize()
public int getMaxAge()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020 JBoss by Red Hat. All rights reserved.