Package com.intellij.util.io
Class PagePool
- java.lang.Object
-
- com.intellij.util.io.PagePool
-
public class PagePool extends Object
-
-
Constructor Summary
Constructors Constructor Description PagePool(int protectedPagesLimit, int probationalPagesLimit)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Pagealloc(RandomAccessDataFile owner, long offset)voidflushPages(RandomAccessDataFile owner)booleanflushPages(RandomAccessDataFile owner, int maxPagesToFlush)static voidprintStatistics()
-
-
-
Field Detail
-
SHARED
public static final PagePool SHARED
-
-
Method Detail
-
alloc
@NotNull public Page alloc(RandomAccessDataFile owner, long offset)
-
printStatistics
public static void printStatistics()
-
flushPages
public void flushPages(RandomAccessDataFile owner)
-
flushPages
public boolean flushPages(RandomAccessDataFile owner, int maxPagesToFlush)
- Parameters:
owner-maxPagesToFlush-- Returns:
- true if all the dirty pages where flushed.
-
-