public class Jcr extends Object
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) |
Modifier and Type | Method and Description |
---|---|
@NotNull org.apache.jackrabbit.oak.api.ContentRepository |
createContentRepository() |
@NotNull javax.jcr.Repository |
createRepository() |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.state.Clusterable c) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.commit.CommitHook hook) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.plugins.observation.CommitRateLimiter commitRateLimiter) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.commit.Editor editor) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.commit.EditorProvider provider) |
@NotNull Jcr |
with(@NotNull Executor executor) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.plugins.index.IndexEditorProvider indexEditorProvider) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.commit.Observer observer) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.commit.PartialConflictHandler conflictHandler)
Deprecated.
Use
with(ThreeWayConflictHandler) instead |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.query.QueryIndexProvider provider) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.query.QueryLimits qs) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.lifecycle.RepositoryInitializer initializer) |
@NotNull Jcr |
with(@NotNull ScheduledExecutorService executor) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.security.SecurityProvider securityProvider) |
@NotNull Jcr |
with(@NotNull String defaultWorkspaceName) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.commit.ThreeWayConflictHandler conflictHandler) |
@NotNull Jcr |
with(@NotNull org.apache.jackrabbit.oak.spi.whiteboard.Whiteboard whiteboard) |
@NotNull Jcr |
withAsyncIndexing()
Deprecated.
Use
withAsyncIndexing(String, long) instead |
@NotNull Jcr |
withAsyncIndexing(@NotNull String name,
long delayInSeconds) |
Jcr |
withAtomicCounter() |
@NotNull Jcr |
withFastQueryResultSize(boolean fastQueryResultSize) |
@NotNull Jcr |
withObservationQueueLength(int observationQueueLength) |
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 javax.jcr.Repository createRepository()
Copyright © 2012–2019 The Apache Software Foundation. All rights reserved.