Class TransportResponse

java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted
Direct Known Subclasses:
ActionResponse, BaseNodeResponse, BroadcastShardResponse, CanMatchNodeResponse, LocalAllocateDangledIndices.AllocateDangledResponse, PeersResponse, PreVoteResponse, PublishWithJoinResponse, RecoveryResponse, SearchPhaseResult, SearchTransportService.SearchFreeContextResponse, TransportResponse.Empty, TransportService.HandshakeResponse

public abstract class TransportResponse extends TransportMessage
  • Constructor Details

    • TransportResponse

      public TransportResponse()
      Constructs a new empty transport response
    • TransportResponse

      public TransportResponse(StreamInput in) throws IOException
      Constructs a new transport response with the data from the StreamInput. This is currently a no-op. However, this exists to allow extenders to call super(in) so that reading can mirror writing where we often call super.writeTo(out).
      Throws:
      IOException