Class SegmentBufferWriterPool


  • public class SegmentBufferWriterPool
    extends java.lang.Object
    This WriteOperationHandler uses a pool of SegmentBufferWriters, which it passes to its execute method.

    Instances of this class are thread safe.

    • 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