Interface ResultsHandler
-
- All Known Subinterfaces:
SearchResultsHandler
public interface ResultsHandlerCallback interface for operations that are returning one or more results. Currently used only bySearch, but may be used by other operations in the future.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanhandle(ConnectorObject connectorObject)Invoked each time a matchingConnectorObjectis returned from a query request.
-
-
-
Method Detail
-
handle
boolean handle(ConnectorObject connectorObject)
Invoked each time a matchingConnectorObjectis returned from a query request.- Parameters:
connectorObject- The matching ConnectorObject.- Returns:
trueif this handler should continue to be notified of any remaining matching ConnectorObjects, orfalseif 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 returnsfalsethe last items should be considers unhandled and in next page request it should be the first item.- Throws:
java.lang.RuntimeException- the implementor should throw aRuntimeExceptionthat wraps any native exception (or that describes any other problem during execution) that is serious enough to stop the iteration.
-
-