Class StoredAsyncResponse<R extends Writeable>

All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted, org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject, AsyncResponse<StoredAsyncResponse<R>>

public class StoredAsyncResponse<R extends Writeable> extends ActionResponse implements AsyncResponse<StoredAsyncResponse<R>>, org.elasticsearch.xcontent.ToXContentObject
Internal class for temporary storage of eql search results
  • Constructor Details

    • StoredAsyncResponse

      public StoredAsyncResponse(R response, long expirationTimeMillis)
    • StoredAsyncResponse

      public StoredAsyncResponse(Exception exception, long expirationTimeMillis)
    • StoredAsyncResponse

      public StoredAsyncResponse(Writeable.Reader<R> reader, StreamInput input) throws IOException
      Throws:
      IOException
  • Method Details

    • getExpirationTime

      public long getExpirationTime()
      Description copied from interface: AsyncResponse
      When this response will expire as a timestamp in milliseconds since epoch.
      Specified by:
      getExpirationTime in interface AsyncResponse<R extends Writeable>
    • withExpirationTime

      public StoredAsyncResponse<R> withExpirationTime(long expirationTime)
      Description copied from interface: AsyncResponse
      Returns a copy of this object with a new expiration time
      Specified by:
      withExpirationTime in interface AsyncResponse<R extends Writeable>
    • writeTo

      public void writeTo(StreamOutput out) throws IOException
      Specified by:
      writeTo in interface Writeable
      Throws:
      IOException
    • getResponse

      public R getResponse()
    • getException

      public Exception getException()
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException