Exemple #1
0
 private int getEvictableSize() {
   final int size = size();
   if (size < 1) {
     return 0;
   }
   final int evictableSize =
       EvictionHelper.getEvictableSize(size, mapContainer.getMapConfig(), mapServiceContext);
   if (evictableSize < 1) {
     return 0;
   }
   return evictableSize;
 }
Exemple #2
0
 private boolean isEvictable() {
   return EvictionHelper.checkEvictable(mapContainer);
 }