Class MemoryManager

java.lang.Object
com.j_spaces.core.MemoryManager
All Implemented Interfaces:
Closeable, AutoCloseable

public class MemoryManager extends Object implements Closeable
  • Constructor Details

  • Method Details

    • isEnabled

      public boolean isEnabled()
    • isRestartOnFailover

      public boolean isRestartOnFailover()
    • monitorMemoryUsage

      public void monitorMemoryUsage(boolean isWriteTypeOperation) throws MemoryShortageException
      check if we reached the memory-usage "watermark". if memory usage is not enabled do nothing.
      Parameters:
      isWriteTypeOperation - is write operation
      Throws:
      MemoryShortageException
    • monitorMemoryUsageWithNoEviction

      public boolean monitorMemoryUsageWithNoEviction(boolean isWriteTypeOperation)
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
      Specified by:
      close in interface Closeable