public interface PageSwapperFactory
| Modifier and Type | Method and Description |
|---|---|
PageSwapper |
createPageSwapper(File file,
int filePageSize,
PageEvictionCallback onEviction)
Create a PageSwapper for the given file.
|
PageSwapper createPageSwapper(File file, int filePageSize, PageEvictionCallback onEviction) throws IOException
file - The file that the PageSwapper will move file pages in and
out of.filePageSize - The size of the pages in the file. Presumably a
multiple of some record size.onEviction - The PageSwapper will be told about evictions, and has
the responsibility of informing the PagedFile via this callback.IOException - If the PageSwapper could not be created, for
instance if the underlying file could not be opened.Copyright © 2002–2015 The Neo4j Graph Database Project. All rights reserved.