Package com.spotify.dns
Interface ChangeNotifierFactory<T>
-
public interface ChangeNotifierFactory<T>Creates aChangeNotifierFactory.RunnableChangeNotifierfrom a FQDN.Intended to be used from
DnsSrvWatcherFactorywhen implementing custom triggering schemes forDnsSrvWatchers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceChangeNotifierFactory.RunnableChangeNotifier<T>AChangeNotifierthat that can be executed.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeNotifierFactory.RunnableChangeNotifier<T>create(String fqdn)Creates aChangeNotifierthat is aRunnable.
-
-
-
Method Detail
-
create
ChangeNotifierFactory.RunnableChangeNotifier<T> create(String fqdn)
Creates aChangeNotifierthat is aRunnable. When a check for a change should be executed is up to the caller of this method.- Parameters:
fqdn- The FQDN for the change notifier- Returns:
- A runnable change notifier
-
-