public final class Page extends Object implements Comparable<Page>
Modifier and Type | Field and Description |
---|---|
static int |
SIZE_RECORD |
Constructor and Description |
---|
Page(SimpleString storeName,
StorageManager storageManager,
SequentialFileFactory factory,
SequentialFile file,
int pageId) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
compareTo(Page otherPage) |
boolean |
delete(PagedMessage[] messages) |
boolean |
equals(Object obj) |
protected void |
finalize() |
SequentialFile |
getFile() |
int |
getNumberOfMessages() |
int |
getPageId() |
int |
getSize() |
int |
hashCode() |
boolean |
isLive() |
void |
open() |
List<PagedMessage> |
read(StorageManager storage) |
void |
setLiveCache(LivePageCache pageCache) |
void |
sync() |
String |
toString() |
void |
write(PagedMessage message) |
public static final int SIZE_RECORD
public Page(SimpleString storeName, StorageManager storageManager, SequentialFileFactory factory, SequentialFile file, int pageId) throws Exception
Exception
public int getPageId()
public void setLiveCache(LivePageCache pageCache)
public List<PagedMessage> read(StorageManager storage) throws Exception
Exception
public void write(PagedMessage message) throws Exception
Exception
public boolean isLive()
public boolean delete(PagedMessage[] messages) throws Exception
Exception
public int getNumberOfMessages()
public int getSize()
public int compareTo(Page otherPage)
compareTo
in interface Comparable<Page>
public SequentialFile getFile()
Copyright © 2014 JBoss by Red Hat. All Rights Reserved.