public interface PageCache extends SoftValueHashMap.ValueCache
Modifier and Type | Method and Description |
---|---|
void |
close() |
PagedMessage |
getMessage(int messageNumber) |
PagedMessage[] |
getMessages() |
int |
getNumberOfMessages() |
Page |
getPage() |
long |
getPageId() |
boolean |
isLive()
If this cache is still being updated
|
void |
lock()
When the cache is being created,
We need to first read the files before other threads can get messages from this.
|
void |
setMessages(PagedMessage[] messages) |
void |
unlock()
You have to call this method within the same thread you called lock
|
Page getPage()
long getPageId()
int getNumberOfMessages()
void setMessages(PagedMessage[] messages)
PagedMessage[] getMessages()
boolean isLive()
isLive
in interface SoftValueHashMap.ValueCache
PagedMessage getMessage(int messageNumber)
messageNumber
- The order of the message on the pagevoid lock()
void unlock()
void close()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.