类 GetTaskRequest

java.lang.Object
org.easysearch.client.tasks.GetTaskRequest
所有已实现的接口:
Validatable

public class GetTaskRequest
extends java.lang.Object
implements Validatable
  • 字段概要

    从接口继承的字段 org.easysearch.client.Validatable

    EMPTY
  • 构造器概要

    构造器
    构造器 说明
    GetTaskRequest​(java.lang.String nodeId, long taskId)  
  • 方法概要

    修饰符和类型 方法 说明
    boolean equals​(java.lang.Object obj)  
    java.lang.String getNodeId()  
    long getTaskId()  
    org.easysearch.common.unit.TimeValue getTimeout()
    Timeout to wait for any async actions this request must take.
    boolean getWaitForCompletion()
    Should this request wait for all found tasks to complete?
    int hashCode()  
    GetTaskRequest setTimeout​(org.easysearch.common.unit.TimeValue timeout)
    Timeout to wait for any async actions this request must take.
    GetTaskRequest setWaitForCompletion​(boolean waitForCompletion)
    Should this request wait for all found tasks to complete?
    java.util.Optional<ValidationException> validate()
    Perform validation.

    从类继承的方法 java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 构造器详细资料

    • GetTaskRequest

      public GetTaskRequest​(java.lang.String nodeId, long taskId)
  • 方法详细资料

    • getNodeId

      public java.lang.String getNodeId()
    • getTaskId

      public long getTaskId()
    • getWaitForCompletion

      public boolean getWaitForCompletion()
      Should this request wait for all found tasks to complete?
    • setWaitForCompletion

      public GetTaskRequest setWaitForCompletion​(boolean waitForCompletion)
      Should this request wait for all found tasks to complete?
    • getTimeout

      public org.easysearch.common.unit.TimeValue getTimeout()
      Timeout to wait for any async actions this request must take. It must take anywhere from 0 to 2.
    • setTimeout

      public GetTaskRequest setTimeout​(org.easysearch.common.unit.TimeValue timeout)
      Timeout to wait for any async actions this request must take.
    • validate

      public java.util.Optional<ValidationException> validate()
      从接口复制的说明: Validatable
      Perform validation. This method does not have to be overridden in the event that no validation needs to be done, or the validation was done during object construction time. A ValidationException that is not null is assumed to contain validation errors and will be thrown.
      指定者:
      validate 在接口中 Validatable
      返回:
      An Optional ValidationException that contains a list of validation errors.
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 java.lang.Object
    • equals

      public boolean equals​(java.lang.Object obj)
      覆盖:
      equals 在类中 java.lang.Object