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()
BookmarkManagergetBookmarks in interface BookmarkManagerpublic void storeBookmark(String bookmark, Collection<String> previous)
BookmarkManagerstoreBookmark in interface BookmarkManagerbookmark - new bookmark to storeprevious - previous bookmarks that are to be replaced by new bookmark, may be emptyCopyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.