public final class StreamCacheFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
StreamCache |
createStreamCache()
Get the correct implementation (based on cacheToFile) of
StreamCache.
|
StreamCache |
createStreamCache(int hintSize)
Get the correct implementation (based on cacheToFile) of
StreamCache.
|
static StreamCacheFactory |
getInstance()
Returns an instance of a StreamCacheFactory with the requested features.
|
public static StreamCacheFactory getInstance()
public StreamCache createStreamCache() throws IOException
IOException - if there is an IO errorpublic StreamCache createStreamCache(int hintSize) throws IOException
hintSize - a hint about the approximate expected size of the bufferIOException - if there is an IO errorCopyright © 2025 Apache Software Foundation. All rights reserved.