Class MultiSearchTemplateResponse.Item

  • All Implemented Interfaces:
    Streamable
    Enclosing class:
    MultiSearchTemplateResponse

    public static class MultiSearchTemplateResponse.Item
    extends java.lang.Object
    implements Streamable
    A search template response item, holding the actual search template response, or an error message if it failed.
    • Method Detail

      • isFailure

        public boolean isFailure()
        Is it a failed search?
      • getFailureMessage

        @Nullable
        public java.lang.String getFailureMessage()
        The actual failure message, null if its not a failure.
      • readFrom

        public void readFrom​(StreamInput in)
                      throws java.io.IOException
        Specified by:
        readFrom in interface Streamable
        Throws:
        java.io.IOException
      • writeTo

        public void writeTo​(StreamOutput out)
                     throws java.io.IOException
        Specified by:
        writeTo in interface Streamable
        Throws:
        java.io.IOException
      • getFailure

        public java.lang.Exception getFailure()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object