public class CaffeineBookmarkManager extends Object implements BookmarkManager
When using this class you must ensure that caffeine dependency is on your class path.
Constructor and Description |
---|
CaffeineBookmarkManager() |
CaffeineBookmarkManager(com.github.benmanes.caffeine.cache.Cache<String,String> cache)
Create instance of
CaffeineBookmarkManager with provided cache |
Modifier and Type | Method and Description |
---|---|
Collection<String> |
getBookmarks()
Return stored bookmarks
|
void |
storeBookmark(String bookmark,
Collection<String> previous)
Stores bookmark to this manager
|
public CaffeineBookmarkManager()
public CaffeineBookmarkManager(com.github.benmanes.caffeine.cache.Cache<String,String> cache)
CaffeineBookmarkManager
with provided cachecache
- cachepublic Collection<String> getBookmarks()
BookmarkManager
getBookmarks
in interface BookmarkManager
public void storeBookmark(String bookmark, Collection<String> previous)
BookmarkManager
storeBookmark
in interface BookmarkManager
bookmark
- new bookmark to storeprevious
- previous bookmarks that are to be replaced by new bookmark, may be emptyCopyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.