You are viewing a plain text version of this content. The canonical link for it is here.
Posted to oak-dev@jackrabbit.apache.org by Gabriela Matias Navarro <na...@gmail.com> on 2019/01/14 16:23:33 UTC

Configurable asyncDelay on DocumentMK.Builder

Hi,

I'm working on a project and we are using Oak version 1.6.11 . We are
trying to tune Oak and one of the things we would like to change is the
asyncDelay from org.apache.jackrabbit.oak.plugins.document.DocumentMK.Builder
. This property has a 1 second value hard coded. I was wondering if there
is a reason for that and if it's possible to make it configurable on Oak
itself.

One approach we are trying to do is have our own class for the Builder and
overwrite that value, but I would like to see if there is a reason for that
hard coded value before I do that change.

Thanks,
Gabriela

Re: Configurable asyncDelay on DocumentMK.Builder

Posted by Marcel Reutegger <mr...@adobe.com.INVALID>.
Hi Gabriela,

On 14.01.19, 17:23, "Gabriela Matias Navarro" <na...@gmail.com> wrote:
> I'm working on a project and we are using Oak version 1.6.11 . We are
> trying to tune Oak and one of the things we would like to change is the
> asyncDelay from
> org.apache.jackrabbit.oak.plugins.document.DocumentMK.Builder . This
> property has a 1 second value hard coded. I was wondering if there is a
> reason for that and if it's possible to make it configurable on Oak
> itself.

There is a setter method on the builder that allows you to customize the async delay:
https://github.com/apache/jackrabbit-oak/blob/jackrabbit-oak-1.6.11/oak-core/src/main/java/org/apache/jackrabbit/oak/plugins/document/DocumentMK.java#L925

Regards
 Marcel