Interface DiscoveryRequest


public interface DiscoveryRequest
The outstanding discovery request, which may be used to cancel an ongoing discovery process.
Author:
David M. Lloyd
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final DiscoveryRequest
    The null discovery request; cancel requests are ignored.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Cancel the discovery process, if possible.
  • Field Details

    • NULL

      static final DiscoveryRequest NULL
      The null discovery request; cancel requests are ignored. Useful for implementing trivial discovery providers.
  • Method Details

    • cancel

      void cancel()
      Cancel the discovery process, if possible. If cancellation is successful, the provider should call DiscoveryResult.complete(). This method may be called after discovery was already completed. This method may be called more than once and thus should be idempotent.