org.elasticsearch.transport.TransportService.onRequestSent()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(133)

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

TransportService.onRequestSent介绍

[英]called by the Transport implementation once a request has been sent
[中]发送请求后由传输实现调用

代码示例

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

private void sendLocalRequest(long requestId, final String action, final TransportRequest request, TransportRequestOptions options) {
  final DirectResponseChannel channel = new DirectResponseChannel(logger, localNode, action, requestId, this, threadPool);
  try {
    onRequestSent(localNode, requestId, action, request, options);
    onRequestReceived(requestId, action);
    final RequestHandlerRegistry reg = getRequestHandler(action);

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

private void sendLocalRequest(long requestId, final String action, final TransportRequest request, TransportRequestOptions options) {
  final DirectResponseChannel channel = new DirectResponseChannel(logger, localNode, action, requestId, this, threadPool);
  try {
    onRequestSent(localNode, requestId, action, request, options);
    onRequestReceived(requestId, action);
    final RequestHandlerRegistry reg = getRequestHandler(action);

代码示例来源:origin: apache/servicemix-bundles

private void sendLocalRequest(long requestId, final String action, final TransportRequest request, TransportRequestOptions options) {
  final DirectResponseChannel channel = new DirectResponseChannel(logger, localNode, action, requestId, this, threadPool);
  try {
    onRequestSent(localNode, requestId, action, request, options);
    onRequestReceived(requestId, action);
    final RequestHandlerRegistry reg = getRequestHandler(action);

相关文章

微信公众号

最新文章

更多

TransportService类方法