Package org.opensearch.core.transport
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
Response over the transport interface
- Opensearch.api:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.WriteableRegistry, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new empty transport responseConstructs a new transport response with the data from theStreamInput. -
Method Summary
Methods inherited from class org.opensearch.core.transport.TransportMessage
remoteAddress, remoteAddress
-
Constructor Details
-
TransportResponse
public TransportResponse()Constructs a new empty transport response -
TransportResponse
Constructs a new transport response with the data from theStreamInput. This is currently a no-op. However, this exists to allow extenders to callsuper(in)so that reading can mirror writing where we often callsuper.writeTo(out).- Throws:
IOException
-