Package org.apache.jackrabbit.oak.jcr
Class Jcr
java.lang.Object
org.apache.jackrabbit.oak.jcr.Jcr
Builder class which encapsulates the details of building a JCR
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().
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull ContentRepository@NotNull Repository@NotNull Jcrfinal @NotNull Jcrfinal @NotNull Jcrwith(@NotNull ScheduledExecutorService executor) final @NotNull Jcrwith(@NotNull IndexEditorProvider indexEditorProvider) @NotNull Jcrwith(@NotNull CommitRateLimiter commitRateLimiter) final @NotNull Jcrwith(@NotNull CommitHook hook) final @NotNull Jcrfinal @NotNull Jcrwith(@NotNull EditorProvider provider) final @NotNull Jcrfinal @NotNull Jcrwith(@NotNull PartialConflictHandler conflictHandler) Deprecated.final @NotNull Jcrwith(@NotNull ThreeWayConflictHandler conflictHandler) final @NotNull Jcrwith(@NotNull RepositoryInitializer initializer) final @NotNull Jcrwith(@NotNull QueryIndexProvider provider) @NotNull Jcrwith(@NotNull QueryLimits qs) final @NotNull Jcrwith(@NotNull SecurityProvider securityProvider) @NotNull Jcrwith(@NotNull Clusterable c) @NotNull Jcrwith(@NotNull Whiteboard whiteboard) @NotNull JcrDeprecated.UsewithAsyncIndexing(String, long)instead@NotNull JcrwithAsyncIndexing(@NotNull String name, long delayInSeconds) @NotNull JcrwithFastQueryResultSize(boolean fastQueryResultSize) @NotNull JcrwithObservationQueueLength(int observationQueueLength) @NotNull JcrDisables registration ofSessionMBeanfor every open Session in the repository.
-
Field Details
-
DEFAULT_OBSERVATION_QUEUE_LENGTH
public static final int DEFAULT_OBSERVATION_QUEUE_LENGTH- See Also:
-
-
Constructor Details
-
Jcr
-
Jcr
-
Jcr
public Jcr() -
Jcr
-
-
Method Details
-
with
-
with
-
withAtomicCounter
-
with
-
with
-
with
-
with
-
with
-
with
-
with
@Deprecated @NotNull public final @NotNull Jcr with(@NotNull @NotNull PartialConflictHandler conflictHandler) Deprecated.Usewith(ThreeWayConflictHandler)instead -
with
-
with
-
with
-
with
-
withAsyncIndexing
Deprecated.UsewithAsyncIndexing(String, long)instead -
withAsyncIndexing
-
withObservationQueueLength
-
with
-
with
-
withFastQueryResultSize
-
with
-
with
-
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
-
createRepository
-
with(ThreeWayConflictHandler)instead