Class Jcr


  • public class Jcr
    extends java.lang.Object
    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 Detail

      • DEFAULT_OBSERVATION_QUEUE_LENGTH

        public static final int DEFAULT_OBSERVATION_QUEUE_LENGTH
        See Also:
        Constant Field Values
    • Constructor Detail

      • Jcr

        public Jcr​(Oak oak,
                   boolean initialize)
      • Jcr

        public Jcr​(Oak oak)
      • Jcr

        public Jcr()
    • Method Detail

      • with

        @NotNull
        public @NotNull Jcr with​(@NotNull
                                 @NotNull Clusterable c)
      • withAtomicCounter

        public Jcr withAtomicCounter()
      • 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 Editor editor)
      • with

        @NotNull
        public final @NotNull Jcr with​(@NotNull
                                       @NotNull SecurityProvider securityProvider)
      • 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)
      • with

        @NotNull
        public final @NotNull Jcr with​(@NotNull
                                       @NotNull Observer observer)
      • 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)
      • createContentRepository

        @NotNull
        public @NotNull ContentRepository createContentRepository()
      • createRepository

        @NotNull
        public @NotNull Repository createRepository()