@InterfaceAudience.Public public interface ScanResultConsumer extends ScanResultConsumerBase
Result
for an asynchronous scan.
All results that match the given scan object will be passed to this class by calling
onNext(Result)
. ScanResultConsumerBase.onComplete()
means the scan is finished, and
ScanResultConsumerBase.onError(Throwable)
means we hit an unrecoverable error and the scan is terminated.
Modifier and Type | Method and Description |
---|---|
boolean |
onNext(Result result)
Return
false if you want to terminate the scan process. |
onComplete, onError, onScanMetricsCreated
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.