Package com.spotify.dns
Interface ChangeNotifierFactory<T>
-
public interface ChangeNotifierFactory<T>
Creates aChangeNotifierFactory.RunnableChangeNotifier
from a FQDN.Intended to be used from
DnsSrvWatcherFactory
when implementing custom triggering schemes forDnsSrvWatcher
s.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
ChangeNotifierFactory.RunnableChangeNotifier<T>
AChangeNotifier
that that can be executed.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeNotifierFactory.RunnableChangeNotifier<T>
create(String fqdn)
Creates aChangeNotifier
that is aRunnable
.
-
-
-
Method Detail
-
create
ChangeNotifierFactory.RunnableChangeNotifier<T> create(String fqdn)
Creates aChangeNotifier
that 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
-
-