Skip to content

Commit a8b396e

Browse files
committed
Merge branch 'no/java-579-c6b-swap' into no/java-579-c6-swap
# Conflicts: # sentry/src/main/java/io/sentry/HostnameCache.java
2 parents fbec6c7 + f2c2b6b commit a8b396e

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎sentry/src/main/java/io/sentry/HostnameCache.java‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,12 @@ public final class HostnameCache {
5656
private final @NotNull ExecutorService executorService;
5757

5858
/**
59-
* Names the only collaborator a hostname cache reads, rather than taking the whole {@link
59+
* Do not construct a hostname cache directly; get it from {@link
60+
* SentryOptions#getHostnameCache()}. Every instance resolves the hostname as soon as it is built
61+
* and caches it on its own, so another instance would repeat that blocking lookup instead of
62+
* sharing the cached value.
63+
*
64+
* <p>Names the only collaborator a hostname cache reads, rather than taking the whole {@link
6065
* SentryOptions}.
6166
*
6267
* @param ticker the ticker the cache lifetime is measured on

0 commit comments

Comments
 (0)