Package org.apache.jackrabbit.oak.jcr
Class Jcr
- java.lang.Object
 - 
- org.apache.jackrabbit.oak.jcr.Jcr
 
 
- 
public class Jcr extends java.lang.ObjectBuilder class which encapsulates the details of building a JCRRepositorybacked by an OakContentRepositoryinstanceThe backing ContentRepository instance will be constructed with reasonable defaults and additional components can be registered by calling the
withmethods. 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()orcreateRepository(). 
- 
- 
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_OBSERVATION_QUEUE_LENGTH 
- 
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description @NotNull ContentRepositorycreateContentRepository()@NotNull javax.jcr.RepositorycreateRepository()@NotNull Jcrwith(@NotNull java.lang.String defaultWorkspaceName)@NotNull Jcrwith(@NotNull java.util.concurrent.Executor executor)@NotNull Jcrwith(@NotNull java.util.concurrent.ScheduledExecutorService executor)@NotNull Jcrwith(@NotNull IndexEditorProvider indexEditorProvider)@NotNull Jcrwith(@NotNull CommitRateLimiter commitRateLimiter)@NotNull Jcrwith(@NotNull CommitHook hook)@NotNull Jcrwith(@NotNull Editor editor)@NotNull Jcrwith(@NotNull EditorProvider provider)@NotNull Jcrwith(@NotNull Observer observer)@NotNull Jcrwith(@NotNull PartialConflictHandler conflictHandler)Deprecated.Usewith(ThreeWayConflictHandler)instead@NotNull Jcrwith(@NotNull ThreeWayConflictHandler conflictHandler)@NotNull Jcrwith(@NotNull RepositoryInitializer initializer)@NotNull Jcrwith(@NotNull QueryIndexProvider provider)@NotNull Jcrwith(@NotNull QueryLimits qs)@NotNull Jcrwith(@NotNull SecurityProvider securityProvider)@NotNull Jcrwith(@NotNull Clusterable c)@NotNull Jcrwith(@NotNull Whiteboard whiteboard)@NotNull JcrwithAsyncIndexing()Deprecated.UsewithAsyncIndexing(String, long)instead@NotNull JcrwithAsyncIndexing(@NotNull java.lang.String name, long delayInSeconds)JcrwithAtomicCounter()@NotNull JcrwithFastQueryResultSize(boolean fastQueryResultSize)@NotNull JcrwithObservationQueueLength(int observationQueueLength)@NotNull JcrwithoutSessionMBeans()Disables registration ofSessionMBeanfor every open Session in the repository. 
 - 
 
- 
- 
Field Detail
- 
DEFAULT_OBSERVATION_QUEUE_LENGTH
public static final int DEFAULT_OBSERVATION_QUEUE_LENGTH
- See Also:
 - Constant Field Values
 
 
 - 
 
- 
Method Detail
- 
with
@NotNull public @NotNull Jcr with(@NotNull @NotNull Clusterable c)
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull RepositoryInitializer initializer)
 
- 
withAtomicCounter
public Jcr withAtomicCounter()
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull QueryIndexProvider provider)
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull IndexEditorProvider indexEditorProvider)
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull CommitHook hook)
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull EditorProvider provider)
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull SecurityProvider securityProvider)
 
- 
with
@Deprecated @NotNull public final @NotNull Jcr with(@NotNull @NotNull PartialConflictHandler conflictHandler)
Deprecated.Usewith(ThreeWayConflictHandler)instead 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull ThreeWayConflictHandler conflictHandler)
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull java.util.concurrent.ScheduledExecutorService executor)
 
- 
with
@NotNull public final @NotNull Jcr with(@NotNull @NotNull java.util.concurrent.Executor executor)
 
- 
withAsyncIndexing
@NotNull @Deprecated public @NotNull Jcr withAsyncIndexing()
Deprecated.UsewithAsyncIndexing(String, long)instead 
- 
withAsyncIndexing
@NotNull public @NotNull Jcr withAsyncIndexing(@NotNull @NotNull java.lang.String name, long delayInSeconds)
 
- 
withObservationQueueLength
@NotNull public @NotNull Jcr withObservationQueueLength(int observationQueueLength)
 
- 
with
@NotNull public @NotNull Jcr with(@NotNull @NotNull CommitRateLimiter commitRateLimiter)
 
- 
with
@NotNull public @NotNull Jcr with(@NotNull @NotNull QueryLimits qs)
 
- 
withFastQueryResultSize
@NotNull public @NotNull Jcr withFastQueryResultSize(boolean fastQueryResultSize)
 
- 
with
@NotNull public @NotNull Jcr with(@NotNull @NotNull java.lang.String defaultWorkspaceName)
 
- 
with
@NotNull public @NotNull Jcr with(@NotNull @NotNull Whiteboard whiteboard)
 
- 
withoutSessionMBeans
@NotNull public @NotNull Jcr withoutSessionMBeans()
Disables registration ofSessionMBeanfor every open Session in the repository. This gets rid of some overhead for cases where MBeans are not leveraged.- Returns:
 - the Jcr object
 - Since:
 - 1.46
 
 
- 
createContentRepository
@NotNull public @NotNull ContentRepository createContentRepository()
 
- 
createRepository
@NotNull public @NotNull javax.jcr.Repository createRepository()
 
 - 
 
 -