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 |
---|---|
int |
getMaxAge() |
long |
getMaxFileSize() |
Resource |
getResource(String path)
Returns a resource for the given path.
|
void |
invalidate(String path) |
public CachingResourceManager(int metadataCacheSize, long maxFileSize, DirectBufferCache dataCache, ResourceManager underlyingResourceManager, int maxAge)
public Resource getResource(String path) throws IOException
ResourceManager
getResource
in interface ResourceManager
path
- The pathIOException
public void invalidate(String path)
public long getMaxFileSize()
public int getMaxAge()
Copyright © 2013 JBoss by Red Hat. All rights reserved.