@InterfaceAudience.Public public static interface AdvancedScanResultConsumer.ScanController
You can only call one of the
terminate() methods(of course you
are free to not call them both), and the methods are not reentrant. An IllegalStateException
will be thrown if you have already called one of the methods.
This means we will stop fetching data in background, i.e., will not call onNext any more before you resume the scan.
This is useful when you have got enough results and want to stop the scan in onNext method, or you want to stop the scan in onHeartbeat method because it has spent too many time.
Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.