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 Detail

      • watch

        ChangeNotifier<T> watch​(String fqdn)
        Starts watching a FQDN, by creating a ChangeNotifier for it.
        Parameters:
        fqdn - The FQDN to watch
        Returns:
        A change notifier that will reflect changes to the watched fqdn