use of runwar.undertow.MappedResourceManager in project runwar by cfmlprojects.
the class Server method getResourceManager.
private ResourceManager getResourceManager(File warFile, Long transferMinSize, String cfmlDirs, File internalCFMLServerRoot) {
MappedResourceManager mappedResourceManager = new MappedResourceManager(warFile, transferMinSize, cfmlDirs, internalCFMLServerRoot);
if (serverOptions.isDirectoryListingRefreshEnabled())
return mappedResourceManager;
final DirectBufferCache dataCache = new DirectBufferCache(1000, 10, 1000 * 10 * 1000, BufferAllocator.DIRECT_BYTE_BUFFER_ALLOCATOR, METADATA_MAX_AGE);
final int metadataCacheSize = 100;
final long maxFileSize = 10000;
return new CachingResourceManager(metadataCacheSize, maxFileSize, dataCache, mappedResourceManager, METADATA_MAX_AGE);
}
Aggregations