public class VanillaMappedCache<T> extends Object implements Closeable
| Constructor and Description |
|---|
VanillaMappedCache() |
VanillaMappedCache(boolean cleanOnClose) |
VanillaMappedCache(int maximumCacheSize,
boolean releaseOnRemove) |
VanillaMappedCache(int maximumCacheSize,
boolean releaseOnRemove,
boolean cleanOnClose) |
| Modifier and Type | Method and Description |
|---|---|
void |
checkCounts(int min,
int max) |
void |
close() |
VanillaMappedBytes |
get(T key) |
VanillaMappedBytes |
put(T key,
File path,
long size) |
VanillaMappedBytes |
put(T key,
File path,
long size,
long index) |
int |
size() |
public VanillaMappedCache()
public VanillaMappedCache(boolean cleanOnClose)
public VanillaMappedCache(int maximumCacheSize,
boolean releaseOnRemove)
public VanillaMappedCache(int maximumCacheSize,
boolean releaseOnRemove,
boolean cleanOnClose)
public VanillaMappedBytes get(T key)
public VanillaMappedBytes put(T key, File path, long size) throws IOException
IOExceptionpublic VanillaMappedBytes put(T key, File path, long size, long index) throws IOException
IOExceptionpublic int size()
public void close()
close in interface Closeableclose in interface AutoCloseablepublic void checkCounts(int min,
int max)
Copyright © 2015. All rights reserved.