java.lang.Object
org.elasticsearch.xpack.core.async.AsyncExecutionId
- All Implemented Interfaces:
Writeable
A class that contains all information related to a submitted async execution.
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic AsyncExecutionIdDecodes a base64 encoded string into anAsyncExecutionIdthat can be used to retrieve the response of an async execution.static StringEncodes the informations needed to retrieve a async response in a base64 encoded string.booleangetDocId()The document id of the response in the index if the task is not running.Gets the encoded string that represents this execution.TheTaskIdof the async execution in the task manager.inthashCode()static AsyncExecutionIdreadFrom(StreamInput input) toString()voidwriteTo(StreamOutput out)
-
Field Details
-
ASYNC_EXECUTION_ID_HEADER
- See Also:
-
ASYNC_EXECUTION_IS_RUNNING_HEADER
- See Also:
-
-
Constructor Details
-
AsyncExecutionId
-
-
Method Details
-
getDocId
The document id of the response in the index if the task is not running. -
getTaskId
TheTaskIdof the async execution in the task manager. -
getEncoded
Gets the encoded string that represents this execution. -
equals
-
hashCode
public int hashCode() -
toString
-
encode
Encodes the informations needed to retrieve a async response in a base64 encoded string. -
decode
Decodes a base64 encoded string into anAsyncExecutionIdthat can be used to retrieve the response of an async execution. -
writeTo
- Specified by:
writeToin interfaceWriteable- Throws:
IOException
-
readFrom
- Throws:
IOException
-