Interface DiscoveryResult


public interface DiscoveryResult
The discovery result. Instances of this class must be safe for use from multiple threads concurrently.
Author:
David M. Lloyd
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    Indicate that a matching URI was discovered.
    void
    addMatch(ServiceURL serviceURL)
    Indicate that a matching service URL was discovered.
    void
    Indicate that discovery is complete.
    void
    reportProblem(Throwable description)
    Report a discovery problem.
  • Method Details

    • complete

      void complete()
      Indicate that discovery is complete. Once this method is called, all additional calls to addMatch(ServiceURL) will be ignored.
    • reportProblem

      void reportProblem(Throwable description)
      Report a discovery problem. The given description may be inserted into an exception that is visible to the end user.
      Parameters:
      description - a description of the problem (must not be null)
    • addMatch

      default void addMatch(URI uri)
      Indicate that a matching URI was discovered. A service URL with no abstract type or type authorities and no attributes is created for the service URI.
      Parameters:
      uri - the discovered URI
    • addMatch

      void addMatch(ServiceURL serviceURL)
      Indicate that a matching service URL was discovered.
      Parameters:
      serviceURL - the discovered service URL