Package com.spotify.dns
Interface DnsSrvWatcherFactory<T>
-
- Type Parameters:
T- The record type
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface DnsSrvWatcherFactory<T>
A factory for creatingDnsSrvWatcherimplementations.A
ChangeNotifierFactoryis supplied for creatingChangeNotifierFactory.RunnableChangeNotifiers. It is up to the implementation of theDnsSrvWatcherto decide how to schedule running of the createdChangeNotifiers.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DnsSrvWatcher<T>create(ChangeNotifierFactory<T> changeNotifierFactory)Creates aDnsSrvWatcherthat should createChangeNotifierinstances using the given factory.
-
-
-
Method Detail
-
create
DnsSrvWatcher<T> create(ChangeNotifierFactory<T> changeNotifierFactory)
Creates aDnsSrvWatcherthat should createChangeNotifierinstances using the given factory.- Parameters:
changeNotifierFactory- The factory to use for creating change notifier instances- Returns:
- A
DnsSrvWatcher
-
-