Interface MessageSearchResponse
public interface MessageSearchResponse
Base interface for message search responses.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceRepresents a response indicating the search index is not yet ready.static interfaceRepresents a response with the found messages. -
Method Summary
-
Method Details
-
isNotReady
boolean isNotReady()Whether the message search results are not ready yet.If this returns
true, you must useasNotReady()to retry the request according to the returned delay.If this returns
false, you must useasResults()to read the results.- Returns:
trueif the index is not ready yet,falseotherwise
-
asNotReady
Returns this instance asNotReady, if it is one.- Returns:
- The
NotReadystate - Throws:
IllegalStateException- If the search has succeeded
-
asResults
Returns this instance asResults, if it is one.- Returns:
- The
Resultsstate - Throws:
IllegalStateException- If the search is not ready yet
-