Class TransportResponse

java.lang.Object
org.opensearch.core.transport.TransportMessage
org.opensearch.core.transport.TransportResponse
All Implemented Interfaces:
Writeable
Direct Known Subclasses:
ActionResponse, TransportResponse.Empty

@PublicApi(since="1.0.0") public abstract class TransportResponse extends TransportMessage
Response over the transport interface
Opensearch.api:
  • 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