Package org.wildfly.discovery.spi
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 TypeMethodDescriptiondefault voidIndicate that a matching URI was discovered.voidaddMatch(ServiceURL serviceURL) Indicate that a matching service URL was discovered.voidcomplete()Indicate that discovery is complete.voidreportProblem(Throwable description) Report a discovery problem.
-
Method Details
-
complete
void complete()Indicate that discovery is complete. Once this method is called, all additional calls toaddMatch(ServiceURL)will be ignored. -
reportProblem
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 benull)
-
addMatch
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
Indicate that a matching service URL was discovered.- Parameters:
serviceURL- the discovered service URL
-