Interface Discovery.Listener

Enclosing class:
Discovery

public static interface Discovery.Listener
Receives what a Discovery.browse(String, Listener) finds.
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    failed(String message)
    The socket could not be opened; nothing more will be reported.
    void
    A service appeared, or changed its address, port or TXT record.
    void
    A service said goodbye or its records expired.
  • Method Details

    • found

      void found(Discovery.Service service)
      A service appeared, or changed its address, port or TXT record.
    • lost

      void lost(Discovery.Service service)
      A service said goodbye or its records expired. Only the name and type are set.
    • failed

      default void failed(String message)
      The socket could not be opened; nothing more will be reported. The default does nothing.