Interface DiscoveryIssueReporter
DiscoveryIssueReporter defines the API for reporting
DiscoveryIssues.
This interface is not intended to be implemented by clients.
- Since:
- 1.13
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface -
Method Summary
Modifier and TypeMethodDescriptionstatic DiscoveryIssueReportercollecting(Collection<? super DiscoveryIssue> collection) Create a newDiscoveryIssueReporterthat adds reported issues to the supplied collection.static DiscoveryIssueReporterconsuming(Consumer<? super DiscoveryIssue> consumer) Create a newDiscoveryIssueReporterthat adds reported issues to the supplied consumer.default <T> DiscoveryIssueReporter.Condition<T> createReportingCondition(Predicate<T> predicate, Function<T, DiscoveryIssue> issueCreator) Create aDiscoveryIssueReporter.Conditionthat reports aDiscoveryIssuewhen the suppliedPredicateis not met.static DiscoveryIssueReporterdeduplicating(DiscoveryIssueReporter delegate) Create a newDiscoveryIssueReporterthat avoids reporting duplicate issues.static DiscoveryIssueReporterforwarding(EngineDiscoveryListener engineDiscoveryListener, UniqueId engineId) Create a newDiscoveryIssueReporterthat reports issues to the suppliedEngineDiscoveryListenerfor the specified engine.voidreportIssue(DiscoveryIssue issue) Report the suppliedDiscoveryIssue.default voidreportIssue(DiscoveryIssue.Builder builder) Build the suppliedBuilderand report the resultingDiscoveryIssue.
-
Method Details
-
forwarding
static DiscoveryIssueReporter forwarding(EngineDiscoveryListener engineDiscoveryListener, UniqueId engineId) Create a newDiscoveryIssueReporterthat reports issues to the suppliedEngineDiscoveryListenerfor the specified engine.- Parameters:
engineDiscoveryListener- the listener to report issues to; nevernullengineId- the unique identifier of the engine; nevernull
-
collecting
Create a newDiscoveryIssueReporterthat adds reported issues to the supplied collection.- Parameters:
collection- the collection to add issues to; nevernull
-
consuming
Create a newDiscoveryIssueReporterthat adds reported issues to the supplied consumer.- Parameters:
consumer- the consumer to report issues to; nevernull
-
deduplicating
Create a newDiscoveryIssueReporterthat avoids reporting duplicate issues.The implementation returned by this method is not thread-safe.
- Parameters:
delegate- the delegate to forward issues to; nevernull
-
reportIssue
Build the suppliedBuilderand report the resultingDiscoveryIssue. -
reportIssue
Report the suppliedDiscoveryIssue. -
createReportingCondition
default <T> DiscoveryIssueReporter.Condition<T> createReportingCondition(Predicate<T> predicate, Function<T, DiscoveryIssue> issueCreator) Create aDiscoveryIssueReporter.Conditionthat reports aDiscoveryIssuewhen the suppliedPredicateis not met.- Parameters:
predicate- the predicate to test; nevernullissueCreator- the function to create the issue with; nevernull- Returns:
- a new
Condition; nevernull
-