Class ChunkCache
java.lang.Object
org.aspectj.org.eclipse.jdt.internal.core.nd.db.ChunkCache
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
add(org.aspectj.org.eclipse.jdt.internal.core.nd.db.Chunk chunk)
void
clear()
long
Returns the maximum size of the chunk cache in bytes.static ChunkCache
void
remove(org.aspectj.org.eclipse.jdt.internal.core.nd.db.Chunk chunk)
void
setMaxSize(long maxSize)
Clears the page table and changes it to hold chunks with maximum total memory ofmaxSize
.
-
Field Details
-
CHUNK_CACHE_SIZE_MB
- See Also:
- Constant Field Values
-
CHUNK_CACHE_SIZE_PERCENT
- See Also:
- Constant Field Values
-
CHUNK_CACHE_SIZE_MB_DEFAULT
public static final double CHUNK_CACHE_SIZE_MB_DEFAULT- See Also:
- Constant Field Values
-
CHUNK_CACHE_SIZE_PERCENT_DEFAULT
public static final double CHUNK_CACHE_SIZE_PERCENT_DEFAULT- See Also:
- Constant Field Values
-
-
Constructor Details
-
ChunkCache
public ChunkCache() -
ChunkCache
public ChunkCache(long maxSize)
-
-
Method Details
-
add
public void add(org.aspectj.org.eclipse.jdt.internal.core.nd.db.Chunk chunk) -
remove
public void remove(org.aspectj.org.eclipse.jdt.internal.core.nd.db.Chunk chunk) -
getMaxSize
public long getMaxSize()Returns the maximum size of the chunk cache in bytes. -
setMaxSize
public void setMaxSize(long maxSize)Clears the page table and changes it to hold chunks with maximum total memory ofmaxSize
.- Parameters:
maxSize
- the total size of the chunks in bytes.
-
clear
public void clear()