public final class DnsSrvWatchers extends Object
DnsSrvWatchers.| Modifier and Type | Class and Description |
|---|---|
static class |
DnsSrvWatchers.DnsSrvWatcherBuilder<T> |
| Modifier and Type | Method and Description |
|---|---|
static DnsSrvWatchers.DnsSrvWatcherBuilder<LookupResult> |
newBuilder(DnsSrvResolver resolver)
Creates a
DnsSrvWatchers.DnsSrvWatcherBuilder using the given DnsSrvResolver. |
static <T> DnsSrvWatchers.DnsSrvWatcherBuilder<T> |
newBuilder(DnsSrvResolver resolver,
com.google.common.base.Function<LookupResult,T> resultTransformer)
Creates a
DnsSrvWatchers.DnsSrvWatcherBuilder using the given DnsSrvResolver. |
public static DnsSrvWatchers.DnsSrvWatcherBuilder<LookupResult> newBuilder(DnsSrvResolver resolver)
DnsSrvWatchers.DnsSrvWatcherBuilder using the given DnsSrvResolver. The builder
can be configured to have the desired behavior.
Exactly one of DnsSrvWatchers.DnsSrvWatcherBuilder.polling(long, TimeUnit) or
DnsSrvWatchers.DnsSrvWatcherBuilder.customTrigger(DnsSrvWatcherFactory) must be used.
resolver - The resolver to use for lookupspublic static <T> DnsSrvWatchers.DnsSrvWatcherBuilder<T> newBuilder(DnsSrvResolver resolver, com.google.common.base.Function<LookupResult,T> resultTransformer)
DnsSrvWatchers.DnsSrvWatcherBuilder using the given DnsSrvResolver. The builder
can be configured to have the desired behavior.
This watcher will use a function that transforms the LookupResults into an
arbitrary type that will be used throughout the DnsSrvWatcher api.
Exactly one of DnsSrvWatchers.DnsSrvWatcherBuilder.polling(long, TimeUnit) or
DnsSrvWatchers.DnsSrvWatcherBuilder.customTrigger(DnsSrvWatcherFactory) must be used.
resolver - The resolver to use for lookupsresultTransformer - The transformer functionCopyright © 2016. All rights reserved.