Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Added ThreadSafe annotations
  • Loading branch information
jyemin committed Apr 14, 2023
commit a89c2b321ec37ec1f6543152e5fad27a54b65984
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,16 @@

package com.mongodb.internal.dns;

import com.mongodb.annotations.ThreadSafe;

import java.util.List;

/**
* Utility interface for resolving SRV and TXT records.
*
* <p>This class is not part of the public API and may be removed or changed at any time</p>
*/
@ThreadSafe
public interface DnsResolver {

List<String> resolveHostFromSrvRecords(String srvHost, String srvServiceName);
Expand Down
3 changes: 3 additions & 0 deletions driver-core/src/main/com/mongodb/spi/dns/DnsClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

package com.mongodb.spi.dns;

import com.mongodb.annotations.ThreadSafe;

import java.util.List;


Expand All @@ -25,6 +27,7 @@
* @since 4.6
* @see DnsClientProvider
*/
@ThreadSafe
public interface DnsClient {
/**
* Gets the resource record values for the given name and type.
Expand Down