Interface TransportResponseHandler<T extends TransportResponse>

All Superinterfaces:
Writeable.Reader<T>
All Known Implementing Classes:
ActionListenerResponseHandler, CleanableResponseHandler, TransportResponseHandler.Empty, TransportService.ContextRestoreResponseHandler

public interface TransportResponseHandler<T extends TransportResponse> extends Writeable.Reader<T>
  • Field Details

    • TRANSPORT_WORKER

      static final Executor TRANSPORT_WORKER
      Alias for EsExecutors.DIRECT_EXECUTOR_SERVICE which emphasises that non-forking transport response handlers do their work on the transport worker (unless the request is being sent to the local node, but that's not the common case). You must only use this executor for handling responses to very performance-critical actions, and even then only if the deserialization and handling work is very cheap, because this executor will perform all the work for responses from remote nodes on the receiving transport worker itself.
  • Method Details