Package org.wildfly.discovery.spi
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
FieldsModifier and TypeFieldDescriptionstatic final DiscoveryRequestThe null discovery request; cancel requests are ignored. -
Method Summary
-
Field Details
-
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 callDiscoveryResult.complete(). This method may be called after discovery was already completed. This method may be called more than once and thus should be idempotent.
-