Class SegmentBufferWriterPool
- java.lang.Object
-
- org.apache.jackrabbit.oak.segment.SegmentBufferWriterPool
-
public class SegmentBufferWriterPool extends java.lang.Object
ThisWriteOperationHandler
uses a pool ofSegmentBufferWriter
s, which it passes to itsexecute
method.Instances of this class are thread safe.
-
-
Constructor Summary
Constructors Constructor Description SegmentBufferWriterPool(@NotNull SegmentIdProvider idProvider, @NotNull SegmentReader reader, @NotNull java.lang.String wid, @NotNull org.apache.jackrabbit.guava.common.base.Supplier<GCGeneration> gcGeneration)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @NotNull RecordId
execute(@NotNull GCGeneration gcGeneration, @NotNull org.apache.jackrabbit.oak.segment.WriteOperationHandler.WriteOperation writeOperation)
void
flush(@NotNull SegmentStore store)
@NotNull GCGeneration
getGCGeneration()
-
-
-
Constructor Detail
-
SegmentBufferWriterPool
public SegmentBufferWriterPool(@NotNull @NotNull SegmentIdProvider idProvider, @NotNull @NotNull SegmentReader reader, @NotNull @NotNull java.lang.String wid, @NotNull @NotNull org.apache.jackrabbit.guava.common.base.Supplier<GCGeneration> gcGeneration)
-
-
Method Detail
-
getGCGeneration
@NotNull public @NotNull GCGeneration getGCGeneration()
-
execute
@NotNull public @NotNull RecordId execute(@NotNull @NotNull GCGeneration gcGeneration, @NotNull @NotNull org.apache.jackrabbit.oak.segment.WriteOperationHandler.WriteOperation writeOperation) throws java.io.IOException
- Throws:
java.io.IOException
-
flush
public void flush(@NotNull @NotNull SegmentStore store) throws java.io.IOException
- Throws:
java.io.IOException
-
-