Interface PageCursorProvider

  • All Known Implementing Classes:
    PageCursorProviderImpl

    public interface PageCursorProvider
    The provider of Cursor for a given Address
    • Method Detail

      • clearCache

        void clearCache()
        Used on tests, to simulate a scenario where the VM cleared space
      • getPageCache

        PageCache getPageCache​(long pageNr)
      • 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:
      • 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()