public final class DnsServiceDiscoverers
extends Object
ServiceDiscoverers.| Modifier and Type | Method and Description |
|---|---|
static DnsServiceDiscovererBuilder |
builder(String id)
A new
DnsServiceDiscovererBuilder instance. |
static ServiceDiscoverer<HostAndPort,InetSocketAddress,ServiceDiscovererEvent<InetSocketAddress>> |
globalARecordsDnsServiceDiscoverer()
|
static ServiceDiscoverer<String,InetSocketAddress,ServiceDiscovererEvent<InetSocketAddress>> |
globalSrvRecordsDnsServiceDiscoverer()
|
public static DnsServiceDiscovererBuilder builder(String id)
DnsServiceDiscovererBuilder instance.
The returned builder can be customized using DnsServiceDiscovererBuilderProvider.
id - a (unique) ID to identify the created ServiceDiscoverer.DnsServiceDiscovererBuilder.public static ServiceDiscoverer<HostAndPort,InetSocketAddress,ServiceDiscovererEvent<InetSocketAddress>> globalARecordsDnsServiceDiscoverer()
ServiceDiscoverer that executes DNS lookups for
A/
AAAA records for provided
HostAndPort.hostName() with a fixed HostAndPort.port().
The returned instance can be customized using DnsServiceDiscovererBuilderProvider by targeting
identity.
The lifecycle of this instance shouldn't need to be managed by the user. The returned instance of
ServiceDiscoverer must not be closed.
public static ServiceDiscoverer<String,InetSocketAddress,ServiceDiscovererEvent<InetSocketAddress>> globalSrvRecordsDnsServiceDiscoverer()
ServiceDiscoverer that executes DNS lookups for
SRV records for provided service name as a
String.
The returned instance can be customized using DnsServiceDiscovererBuilderProvider by targeting
identity.
The lifecycle of this instance shouldn't need to be managed by the user. The returned instance of
ServiceDiscoverer must not be closed.