Skip to content
This repository was archived by the owner on Jul 27, 2023. It is now read-only.
This repository was archived by the owner on Jul 27, 2023. It is now read-only.

checkWatch networkReadMillis < cacheWatchSeconds ? #451

@ecolinet

Description

@ecolinet

Hi,

I don't understand why the networkReadTimeout is enforced to be higher than the cacheWatch value. Shouldn't it be the opposite ?

protected static void checkWatch(int networkReadMillis, int cacheWatchSeconds) {
if (networkReadMillis <= TimeUnit.SECONDS.toMillis(cacheWatchSeconds)) {
throw new IllegalArgumentException("Cache watchInterval="+ cacheWatchSeconds + "sec >= networkClientReadTimeout="
+ networkReadMillis + "ms. It can cause issues");
}
}

Thanks,
Eric

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions