Class GCMemoryBarrier
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.file.GCMemoryBarrier
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class GCMemoryBarrier extends Object implements Closeable
Responsible for raising the low memory flag whenever the available memory falls under a specified threshold. UsesMemoryPoolMXBean
to register for memory related notifications.
-
-
Constructor Summary
Constructors Constructor Description GCMemoryBarrier(@NotNull AtomicBoolean sufficientMemory, @NotNull org.apache.jackrabbit.oak.segment.file.GCListener gcListener, @NotNull SegmentGCOptions gcOptions)
-
-
-
Constructor Detail
-
GCMemoryBarrier
public GCMemoryBarrier(@NotNull @NotNull AtomicBoolean sufficientMemory, @NotNull @NotNull org.apache.jackrabbit.oak.segment.file.GCListener gcListener, @NotNull @NotNull SegmentGCOptions gcOptions)
-
-
Method Detail
-
close
public void close() throws IOException
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
-