VladRodionov commented on code in PR #8279:
URL: https://github.com/apache/hbase/pull/8279#discussion_r3314654229


##########
hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/cache/CacheTopology.java:
##########
@@ -198,4 +198,50 @@ default boolean demote(BlockCacheKey cacheKey, Cacheable 
block, CacheEngine sour
    * @return read-only topology view
    */
   CacheTopologyView getView();
+
+  /**
+   * Returns the resizable cache engine for the specified tier, if that tier 
exists and its engine
+   * supports runtime resizing.
+   * <p>
+   * Resizing is an optional per-engine capability. A topology may contain a 
mix of resizable and
+   * non-resizable engines, for example a resizable on-heap L1 and a 
fixed-size off-heap L2. This
+   * helper allows admin/control code to discover resize support without 
exposing resizing on the
+   * read/write path facade.
+   * </p>
+   * @param tier cache tier to inspect
+   * @return resizable engine for the tier, or empty if the tier does not 
exist or is not resizable
+   */
+  default Optional<ResizableCacheEngine> getResizableEngine(CacheTier tier) {

Review Comment:
   ResizableBlockCache interface conversion. Yes, it will be used later in 
subsequent PRs.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to