Tabnine Logo
Task.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
org.elasticsearch.tasks.Task
constructor

Best Java code snippets using org.elasticsearch.tasks.Task.<init> (Showing top 7 results out of 315)

origin: org.elasticsearch/elasticsearch

/**
 * Returns the task object that should be used to keep track of the processing of the request.
 *
 * A request can override this method and return null to avoid being tracked by the task
 * manager.
 */
default Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) {
  return new Task(id, type, action, getDescription(), parentTaskId, headers);
}
origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Returns the task object that should be used to keep track of the processing of the request.
 *
 * A request can override this method and return null to avoid being tracked by the task
 * manager.
 */
default Task createTask(long id, String type, String action, TaskId parentTaskId) {
  return new Task(id, type, action, getDescription(), parentTaskId);
}
origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Returns the task object that should be used to keep track of the processing of the request.
 *
 * A request can override this method and return null to avoid being tracked by the task
 * manager.
 */
default Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) {
  return new Task(id, type, action, getDescription(), parentTaskId, headers);
}
origin: apache/servicemix-bundles

/**
 * Returns the task object that should be used to keep track of the processing of the request.
 *
 * A request can override this method and return null to avoid being tracked by the task
 * manager.
 */
default Task createTask(long id, String type, String action, TaskId parentTaskId, Map<String, String> headers) {
  return new Task(id, type, action, getDescription(), parentTaskId, headers);
}
origin: harbby/presto-connectors

/**
 * Returns the task object that should be used to keep track of the processing of the request.
 *
 * A request can override this method and return null to avoid being tracked by the task manager.
 */
public Task createTask(long id, String type, String action) {
  return new Task(id, type, action, getDescription());
}
origin: harbby/presto-connectors

public Task createTask(long id, String type, String action, TaskId parentTaskId) {
  return new Task(id, type, action, getDescription(), parentTaskId);
}
origin: harbby/presto-connectors

  public Task createTask(long id, String type, String action, TaskId parentTaskId) {
    return new Task(id, type, action, getDescription(), parentTaskId);
  }
}
org.elasticsearch.tasksTask<init>

Popular methods of Task

  • getId
    Returns task id
  • getAction
    Returns task action
  • taskInfo
    Build a version of the task status you can throw over the wire and back to the user.
  • getDescription
    Generates task description
  • getParentTaskId
    Returns id of the parent task or NO_PARENT_ID if the task doesn't have any parent tasks
  • getStatus
    Build a status for this task or null if this task doesn't have status. Since most tasks don't have s
  • getType
    Returns task channel type (netty, transport, direct)
  • result

Popular in Java

  • Making http post requests using okhttp
  • getResourceAsStream (ClassLoader)
  • onRequestPermissionsResult (Fragment)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • EOFException (java.io)
    Thrown when a program encounters the end of a file or stream during an input operation.
  • SecureRandom (java.security)
    This class generates cryptographically secure pseudo-random numbers. It is best to invoke SecureRand
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • PriorityQueue (java.util)
    A PriorityQueue holds elements on a priority heap, which orders the elements according to their natu
  • ImageIO (javax.imageio)
  • 21 Best Atom Packages for 2021
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now