org.elasticsearch.client.node.NodeClient.transportAction()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(3.5k)|赞(0)|评价(0)|浏览(120)

本文整理了Java中org.elasticsearch.client.node.NodeClient.transportAction()方法的一些代码示例,展示了NodeClient.transportAction()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。NodeClient.transportAction()方法的具体详情如下:
包路径:org.elasticsearch.client.node.NodeClient
类名称:NodeClient
方法名:transportAction

NodeClient.transportAction介绍

[英]Get the TransportAction for an Action, throwing exceptions if the action isn't available.
[中]获取某个操作的TransportAction,如果该操作不可用,则引发异常。

代码示例

代码示例来源:origin: org.elasticsearch/elasticsearch

/**
 * Execute an {@link Action} locally, returning that {@link Task} used to track it, and linking an {@link TaskListener}. Prefer this
 * method if you need access to the task when listening for the response.
 */
public <    Request extends ActionRequest,
      Response extends ActionResponse
    > Task executeLocally(GenericAction<Request, Response> action, Request request, TaskListener<Response> listener) {
  return transportAction(action).execute(request, listener);
}

代码示例来源:origin: org.elasticsearch/elasticsearch

/**
 * Execute an {@link Action} locally, returning that {@link Task} used to track it, and linking an {@link ActionListener}. Prefer this
 * method if you don't need access to the task when listening for the response. This is the method used to implement the {@link Client}
 * interface.
 */
public <    Request extends ActionRequest,
      Response extends ActionResponse
    > Task executeLocally(GenericAction<Request, Response> action, Request request, ActionListener<Response> listener) {
  return transportAction(action).execute(request, listener);
}

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Execute an {@link Action} locally, returning that {@link Task} used to track it, and linking an {@link ActionListener}. Prefer this
 * method if you don't need access to the task when listening for the response. This is the method used to implement the {@link Client}
 * interface.
 */
public <    Request extends ActionRequest,
      Response extends ActionResponse
    > Task executeLocally(GenericAction<Request, Response> action, Request request, ActionListener<Response> listener) {
  return transportAction(action).execute(request, listener);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Execute an {@link Action} locally, returning that {@link Task} used to track it, and linking an {@link ActionListener}. Prefer this
 * method if you don't need access to the task when listening for the response. This is the method used to implement the {@link Client}
 * interface.
 */
public <    Request extends ActionRequest,
      Response extends ActionResponse
    > Task executeLocally(GenericAction<Request, Response> action, Request request, ActionListener<Response> listener) {
  return transportAction(action).execute(request, listener);
}

代码示例来源:origin: com.strapdata.elasticsearch/elasticsearch

/**
 * Execute an {@link Action} locally, returning that {@link Task} used to track it, and linking an {@link TaskListener}. Prefer this
 * method if you need access to the task when listening for the response.
 */
public <    Request extends ActionRequest,
      Response extends ActionResponse
    > Task executeLocally(GenericAction<Request, Response> action, Request request, TaskListener<Response> listener) {
  return transportAction(action).execute(request, listener);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.elasticsearch

/**
 * Execute an {@link Action} locally, returning that {@link Task} used to track it, and linking an {@link TaskListener}. Prefer this
 * method if you need access to the task when listening for the response.
 */
public <    Request extends ActionRequest,
      Response extends ActionResponse
    > Task executeLocally(GenericAction<Request, Response> action, Request request, TaskListener<Response> listener) {
  return transportAction(action).execute(request, listener);
}

相关文章