Class AsyncExecutionId

java.lang.Object
org.elasticsearch.xpack.core.async.AsyncExecutionId

public final class AsyncExecutionId extends Object
A class that contains all information related to a submitted async execution.
  • Field Details

  • Constructor Details

    • AsyncExecutionId

      public AsyncExecutionId(String docId, TaskId taskId)
  • Method Details

    • getDocId

      public String getDocId()
      The document id of the response in the index if the task is not running.
    • getTaskId

      public TaskId getTaskId()
      The TaskId of the async execution in the task manager.
    • getEncoded

      public String getEncoded()
      Gets the encoded string that represents this execution.
    • equals

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

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

      public String toString()
      Overrides:
      toString in class Object
    • encode

      public static String encode(String docId, TaskId taskId)
      Encodes the informations needed to retrieve a async response in a base64 encoded string.
    • decode

      public static AsyncExecutionId decode(String id)
      Decodes a base64 encoded string into an AsyncExecutionId that can be used to retrieve the response of an async execution.