Interface PageCursorProvider
-
- All Known Implementing Classes:
PageCursorProviderImpl
public interface PageCursorProviderThe provider of Cursor for a given Address
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddLivePageCache(LivePageCache cache)voidcleanup()Perform the cleanup at the caller's thread (for startup and recovery)voidclearCache()Used on tests, to simulate a scenario where the VM cleared spacevoidclose(PageSubscription pageCursorImpl)PageSubscriptioncreateSubscription(long queueId, Filter filter, boolean durable)voiddisableCleanup()voidflushExecutors()intgetCacheSize()PagedMessagegetMessage(PagePosition pos)PageCachegetPageCache(long pageNr)PageSubscriptiongetSubscription(long queueId)PagedReferencenewReference(PagePosition pos, PagedMessage msg, PageSubscription sub)voidonPageModeCleared()Cleanup stuff as paging mode is being clearedvoidprintDebug()voidprocessReload()voidresumeCleanup()voidscheduleCleanup()voidsetCacheMaxSize(int size)voidstop()
-
-
-
Method Detail
-
clearCache
void clearCache()
Used on tests, to simulate a scenario where the VM cleared space
-
getPageCache
PageCache getPageCache(long pageNr)
-
newReference
PagedReference newReference(PagePosition pos, PagedMessage msg, PageSubscription sub)
-
addLivePageCache
void addLivePageCache(LivePageCache cache)
-
getSubscription
PageSubscription getSubscription(long queueId)
- Parameters:
queueId- The cursorID should be the same as the queueId associated for persistence- Returns:
-
createSubscription
PageSubscription createSubscription(long queueId, Filter filter, boolean durable)
-
getMessage
PagedMessage getMessage(PagePosition pos)
-
stop
void stop()
-
flushExecutors
void flushExecutors()
-
scheduleCleanup
void scheduleCleanup()
-
disableCleanup
void disableCleanup()
-
resumeCleanup
void resumeCleanup()
-
onPageModeCleared
void onPageModeCleared()
Cleanup stuff as paging mode is being cleared
-
cleanup
void cleanup()
Perform the cleanup at the caller's thread (for startup and recovery)
-
setCacheMaxSize
void setCacheMaxSize(int size)
-
close
void close(PageSubscription pageCursorImpl)
- Parameters:
pageCursorImpl-
-
getCacheSize
int getCacheSize()
-
printDebug
void printDebug()
-
-