public interface ResultsHandler
Search, but may be used by other operations in the future.
boolean handle(ConnectorObject connectorObject)
ConnectorObjectis returned from a query request.
connectorObject- The matching ConnectorObject.
trueif this handler should continue to be notified of any remaining matching ConnectorObjects, or
falseif the remaining ConnectorObjects should be skipped for some reason (e.g. a client side size limit has been reached or the failed to handle the last item). If returns
falsethe last items should be considers unhandled and in next page request it should be the first item.
RuntimeException- the implementor should throw a
RuntimeExceptionthat wraps any native exception (or that describes any other problem during execution) that is serious enough to stop the iteration.
Copyright © 2018. All rights reserved.