Interface DataIndexer.RetainableDataIndex

All Superinterfaces:
BasicDataIndex, DataIndex, LivenessReferent
All Known Implementing Classes:
RemappedDataIndex
Enclosing class:
DataIndexer

public static interface DataIndexer.RetainableDataIndex extends DataIndex
Interface for DataIndex implementations that may opt into strong reachability within the DataIndexer's cache.
  • Method Details

    • shouldRetain

      boolean shouldRetain()
      Returns:
      Whether this should be strongly held (if added) to maintain reachability
    • shouldRetain

      static boolean shouldRetain(@NotNull @NotNull DataIndex dataIndex)
      Returns:
      Whether dataIndex should be strongly held (if added) to maintain reachability