| Constructor and Description |
|---|
PagesCache(@Nullable AtomicLong pagesCacheLimit)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(long pageId)
Add pageId to the tail of the list.
|
GridLongList |
flush()
Flush all stripes to one list and clear stripes.
|
long |
poll()
Poll next page from the list.
|
boolean |
removePage(long pageId)
Remove page from the list.
|
int |
size()
Cache size.
|
public PagesCache(@Nullable
@Nullable AtomicLong pagesCacheLimit)
public boolean removePage(long pageId)
pageId - Page id.True if page was found and succesfully removed, false if page not found.public long poll()
public GridLongList flush()
public boolean add(long pageId)
pageId - Page id.True if page can be added, false if list is full.public int size()
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.9.0 Release Date : October 15 2020