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 |
addPendingCounter(PageSubscriptionCounter pageSubscriptionCounter)
This will indicate a page that will need to be called on cleanup when the page has been closed and confirmed
|
void |
close() |
void |
close(boolean sendEvent)
sendEvent means it's a close happening from a major event such moveNext.
|
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 void close(boolean sendEvent) 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()
public void addPendingCounter(PageSubscriptionCounter pageSubscriptionCounter)
pageSubscriptionCounter
- Copyright © 2018 JBoss by Red Hat. All rights reserved.