public class Jcr extends Object
Repository
backed by an Oak ContentRepository
instance
The backing ContentRepository instance will be constructed with
reasonable defaults and additional components can be registered by calling
the with
methods. Note that it is not possible to remove components
once registered.
The Jcr builder is a lazy initializer, to have a working repository make sure
you call createContentRepository()
or
createRepository()
.
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_OBSERVATION_QUEUE_LENGTH |
Constructor and Description |
---|
Jcr() |
Jcr(org.apache.jackrabbit.oak.spi.state.NodeStore store) |
Jcr(org.apache.jackrabbit.oak.Oak oak) |
Jcr(org.apache.jackrabbit.oak.Oak oak,
boolean initialize) |
public static final int DEFAULT_OBSERVATION_QUEUE_LENGTH
public Jcr(org.apache.jackrabbit.oak.Oak oak, boolean initialize)
public Jcr(org.apache.jackrabbit.oak.Oak oak)
public Jcr()
public Jcr(org.apache.jackrabbit.oak.spi.state.NodeStore store)
@NotNull public @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.state.Clusterable c)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer initializer)
public Jcr withAtomicCounter()
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.query.QueryIndexProvider provider)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.plugins.index.IndexEditorProvider indexEditorProvider)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.CommitHook hook)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.EditorProvider provider)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.Editor editor)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider)
@Deprecated @NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler conflictHandler)
with(ThreeWayConflictHandler)
instead@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.ThreeWayConflictHandler conflictHandler)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull ScheduledExecutorService executor)
@NotNull public final @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.commit.Observer observer)
@NotNull @Deprecated public @NotNull Jcr withAsyncIndexing()
withAsyncIndexing(String, long)
instead@NotNull public @NotNull Jcr withAsyncIndexing(@NotNull @NotNull String name, long delayInSeconds)
@NotNull public @NotNull Jcr withObservationQueueLength(int observationQueueLength)
@NotNull public @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.plugins.observation.CommitRateLimiter commitRateLimiter)
@NotNull public @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.query.QueryLimits qs)
@NotNull public @NotNull Jcr withFastQueryResultSize(boolean fastQueryResultSize)
@NotNull public @NotNull Jcr with(@NotNull @NotNull org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard whiteboard)
@NotNull public @NotNull org.apache.jackrabbit.oak.api.ContentRepository createContentRepository()
@NotNull public @NotNull Repository createRepository()
Copyright © 2012–2020 The Apache Software Foundation. All rights reserved.