Class GCMemoryBarrier

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class GCMemoryBarrier
    extends java.lang.Object
    implements java.io.Closeable
    Responsible for raising the low memory flag whenever the available memory falls under a specified threshold. Uses MemoryPoolMXBean to register for memory related notifications.
    • Constructor Summary

      Constructors 
      Constructor Description
      GCMemoryBarrier​(@NotNull java.util.concurrent.atomic.AtomicBoolean sufficientMemory, @NotNull org.apache.jackrabbit.oak.segment.file.GCListener gcListener, @NotNull SegmentGCOptions gcOptions)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GCMemoryBarrier

        public GCMemoryBarrier​(@NotNull
                               @NotNull java.util.concurrent.atomic.AtomicBoolean sufficientMemory,
                               @NotNull
                               @NotNull org.apache.jackrabbit.oak.segment.file.GCListener gcListener,
                               @NotNull
                               @NotNull SegmentGCOptions gcOptions)
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Throws:
        java.io.IOException