Package com.spotify.dns
Class DnsSrvWatchers.DnsSrvWatcherBuilder<T>
- java.lang.Object
-
- com.spotify.dns.DnsSrvWatchers.DnsSrvWatcherBuilder<T>
-
- Enclosing class:
- DnsSrvWatchers
public static final class DnsSrvWatchers.DnsSrvWatcherBuilder<T> extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DnsSrvWatcher<T>build()DnsSrvWatchers.DnsSrvWatcherBuilder<T>customTrigger(DnsSrvWatcherFactory<T> watcherFactory)DnsSrvWatchers.DnsSrvWatcherBuilder<T>polling(long pollingInterval, TimeUnit pollingIntervalUnit)DnsSrvWatchers.DnsSrvWatcherBuilder<T>usingExecutor(ScheduledExecutorService scheduledExecutorService)DnsSrvWatchers.DnsSrvWatcherBuilder<T>withErrorHandler(ErrorHandler errorHandler)
-
-
-
Method Detail
-
build
public DnsSrvWatcher<T> build()
-
polling
public DnsSrvWatchers.DnsSrvWatcherBuilder<T> polling(long pollingInterval, TimeUnit pollingIntervalUnit)
-
usingExecutor
public DnsSrvWatchers.DnsSrvWatcherBuilder<T> usingExecutor(ScheduledExecutorService scheduledExecutorService)
-
customTrigger
public DnsSrvWatchers.DnsSrvWatcherBuilder<T> customTrigger(DnsSrvWatcherFactory<T> watcherFactory)
-
withErrorHandler
public DnsSrvWatchers.DnsSrvWatcherBuilder<T> withErrorHandler(ErrorHandler errorHandler)
-
-