public interface PageCache extends AutoCloseable
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Flush all dirty pages and close the page cache.
|
void |
flushAndForce()
Flush all dirty pages
|
PagedFile |
map(File file,
int pageSize)
Ask for a handle to a paged file, backed by this page cache.
|
int |
maxCachedPages()
The max number of cached pages.
|
int |
pageSize()
The size in bytes of the pages managed by this cache.
|
PagedFile map(File file, int pageSize) throws IOException
IOExceptionvoid flushAndForce()
throws IOException
IOExceptionvoid close()
throws IOException
close in interface AutoCloseableIOExceptionint pageSize()
int maxCachedPages()
Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.