Interface ResultsHandler
- All Known Subinterfaces:
SearchResultsHandler
- All Known Implementing Classes:
DuplicateFilteringResultsHandler
,FilteredResultsHandler
,NormalizingResultsHandler
,SearchImpl.AttributesToGetSearchResultsHandler
,SearchResultsHandlerLoggingProxy
,ToListResultsHandler
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Callback interface for operations that are returning one or more results.
Currently used only by
Search
, but may be used
by other operations in the future.-
Method Summary
Modifier and TypeMethodDescriptionboolean
handle
(ConnectorObject connectorObject) Invoked each time a matchingConnectorObject
is returned from a query request.
-
Method Details
-
handle
Invoked each time a matchingConnectorObject
is returned from a query request.- Parameters:
connectorObject
- The matching ConnectorObject.- Returns:
true
if this handler should continue to be notified of any remaining matching ConnectorObjects, orfalse
if 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 returnsfalse
the last items should be considers unhandled and in next page request it should be the first item.- Throws:
RuntimeException
- the implementor should throw aRuntimeException
that wraps any native exception (or that describes any other problem during execution) that is serious enough to stop the iteration.
-