Class DefaultSegmentWriterBuilder

java.lang.Object
org.apache.jackrabbit.oak.segment.DefaultSegmentWriterBuilder

public final class DefaultSegmentWriterBuilder extends Object
Builder for building DefaultSegmentWriter instances. The returned instances are thread-safe if withWriterPool(PoolType) was specified and not thread-safe if withoutWriterPool() was specified (default).

Default: calling one of the build() methods without previously calling one of the with...() methods returns a SegmentWriter as would the following chain of calls:

     segmentWriterBuilder("name")
        .with(LATEST_VERSION)
        .withGeneration(0)
        .withoutWriterPool()
        .with(new WriterCacheManager.Default())
        .build(store);