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 creatingDnsSrvWatcher
implementations.A
ChangeNotifierFactory
is supplied for creatingChangeNotifierFactory.RunnableChangeNotifier
s. It is up to the implementation of theDnsSrvWatcher
to decide how to schedule running of the createdChangeNotifier
s.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DnsSrvWatcher<T>
create(ChangeNotifierFactory<T> changeNotifierFactory)
Creates aDnsSrvWatcher
that should createChangeNotifier
instances using the given factory.
-
-
-
Method Detail
-
create
DnsSrvWatcher<T> create(ChangeNotifierFactory<T> changeNotifierFactory)
Creates aDnsSrvWatcher
that should createChangeNotifier
instances using the given factory.- Parameters:
changeNotifierFactory
- The factory to use for creating change notifier instances- Returns:
- A
DnsSrvWatcher
-
-