Class LowMemoryDetector


  • public class LowMemoryDetector
    extends Object
    • Constructor Detail

      • LowMemoryDetector

        public LowMemoryDetector()
    • Method Detail

      • isRunningLowOnMemory

        public boolean isRunningLowOnMemory()
      • isRunningLowOnMemory

        public boolean isRunningLowOnMemory​(ServerContext context,
                                            LowMemoryDetector.DetectionScope scope,
                                            Supplier<Boolean> isUserTable,
                                            LowMemoryDetector.Action action)
        Parameters:
        context - server context
        scope - whether this is being checked in the context of scan or compact code
        isUserTable - boolean set true if the table being scanned / compacted is a user table. No action is taken for system tables.
        action - Action to perform when this method returns true
        Returns:
        true if server running low on memory