Class SearchErrorInvoker

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable

    public class SearchErrorInvoker
    extends SearchInvoker
    A search invoker that will immediately produce an error that occurred during invoker construction. Currently used for invalid searchpath values and node failure
    Author:
    ollivir
    • Constructor Detail

      • SearchErrorInvoker

        public SearchErrorInvoker​(ErrorMessage message)
    • Method Detail

      • sendSearchRequest

        protected java.lang.Object sendSearchRequest​(Query query,
                                                     java.lang.Object context)
                                              throws java.io.IOException
        Specified by:
        sendSearchRequest in class SearchInvoker
        Parameters:
        query - the query to send
        context - a context object that can be used to pass context among different invokers, e.g for reuse of preserialized data.
        Returns:
        an object that can be passed to the next invocation of sendSearchRequest
        Throws:
        java.io.IOException