Package com.spotify.dns
Interface DnsSrvWatcher<T>
-
- Type Parameters:
T- The record type
- All Superinterfaces:
AutoCloseable,Closeable
public interface DnsSrvWatcher<T> extends Closeable
A watcher for DNS SRV records.The records can be of any type. Usually something that directly reflects what your application will use the records for.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ChangeNotifier<T>watch(String fqdn)Starts watching a FQDN, by creating aChangeNotifierfor it.
-
-
-
Method Detail
-
watch
ChangeNotifier<T> watch(String fqdn)
Starts watching a FQDN, by creating aChangeNotifierfor it.- Parameters:
fqdn- The FQDN to watch- Returns:
- A change notifier that will reflect changes to the watched fqdn
-
-