public class PageImpl extends Object implements Page, Comparable<Page>
Modifier and Type | Field and Description |
---|---|
static int |
SIZE_RECORD |
Constructor and Description |
---|
PageImpl(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) |
void |
finalize() |
int |
getNumberOfMessages() |
int |
getPageId() |
int |
getSize() |
int |
hashCode() |
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 PageImpl(SimpleString storeName, StorageManager storageManager, SequentialFileFactory factory, SequentialFile file, int pageId) throws Exception
Exception
public void setLiveCache(LivePageCache pageCache)
setLiveCache
in interface Page
public List<PagedMessage> read(StorageManager storage) throws Exception
public void write(PagedMessage message) throws Exception
public boolean delete(PagedMessage[] messages) throws Exception
public int getNumberOfMessages()
getNumberOfMessages
in interface Page
public int compareTo(Page otherPage)
compareTo
in interface Comparable<Page>
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.