public interface PagingStore extends HornetQComponent
The implementation will take care of details such as PageSize.
The producers will write directly to PagingStore and that will decide what Page file should be used based on configured size
PagingManager
Modifier and Type | Method and Description |
---|---|
void |
addSize(int size) |
void |
applySetting(AddressSettings addressSettings) |
boolean |
checkPage(int page) |
Page |
createPage(int page) |
Page |
depage()
Remove the first page from the Writing Queue.
|
void |
executeRunnableWhenMemoryAvailable(Runnable runnable) |
void |
flushExecutors()
This is used mostly by tests.
|
void |
forceAnotherPage() |
SimpleString |
getAddress() |
AddressFullMessagePolicy |
getAddressFullMessagePolicy() |
long |
getAddressSize() |
Page |
getCurrentPage() |
int |
getCurrentWritingPage() |
PageCursorProvider |
getCursorProvier() |
long |
getFirstPage() |
String |
getFolder() |
long |
getMaxSize() |
int |
getNumberOfPages() |
long |
getPageSizeBytes() |
PagingManager |
getPagingManager() |
SimpleString |
getStoreName() |
long |
getTopPage() |
void |
ioSync() |
boolean |
isPaging() |
void |
lock()
This method will hold and producer, but it wait operations to finish before locking (write lock)
|
boolean |
page(ServerMessage message,
RoutingContext ctx) |
boolean |
page(ServerMessage message,
RoutingContext ctx,
RouteContextList listCtx) |
void |
processReload() |
boolean |
startPaging() |
void |
stopPaging() |
void |
sync() |
void |
unlock()
Call this method using the same thread used by the last call of
lock() |
isStarted, start, stop
SimpleString getAddress()
int getNumberOfPages()
int getCurrentWritingPage()
SimpleString getStoreName()
String getFolder()
AddressFullMessagePolicy getAddressFullMessagePolicy()
long getFirstPage()
long getTopPage()
long getPageSizeBytes()
long getAddressSize()
long getMaxSize()
void applySetting(AddressSettings addressSettings)
boolean isPaging()
boolean page(ServerMessage message, RoutingContext ctx) throws Exception
Exception
boolean page(ServerMessage message, RoutingContext ctx, RouteContextList listCtx) throws Exception
Exception
PagingManager getPagingManager()
PageCursorProvider getCursorProvier()
Page depage() throws Exception
Exception
- Note: This should still be part of the interface, even though HornetQ only uses through thePage getCurrentPage()
boolean startPaging() throws Exception
Exception
void addSize(int size)
void executeRunnableWhenMemoryAvailable(Runnable runnable)
void lock()
void unlock()
lock()
void flushExecutors()
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.