Interface ScanResultConsumer

All Superinterfaces:
ScanResultConsumerBase

@Public public interface ScanResultConsumer extends ScanResultConsumerBase
Receives 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.

  • Method Details

    • onNext

      boolean onNext(Result result)
      Return false if you want to terminate the scan process. Otherwise true