Class EhcachePaginationStorage

    • Constructor Detail

      • EhcachePaginationStorage

        public EhcachePaginationStorage​(javax.cache.Cache<String,​Object> cache,
                                        boolean needSerialization)
        Parameters:
        cache - cache instance
        needSerialization - whether search result entries shall be serialized using JAXB -- this is necessary for persistent caches
    • Method Detail

      • take

        public PaginationStorage.TakeResult take​(PagedResultsResponseControl pagination)
                                          throws Exception
        Description copied from interface: PaginationStorage
        Removes at most the given count of result entries from the storage and returns them together with a flag indicating whether some more entries remain in the storage. If the cookie is unknown, the list of result entries will be empty.
        Specified by:
        take in interface PaginationStorage
        Parameters:
        pagination - an object containing the cookie (key) and the maximal count of result entries to return.
        Returns:
        result entries and the remaining entries' availability flag.
        Throws:
        Exception