Package org.elasticsearch.transport
Class TransportResponse
java.lang.Object
org.elasticsearch.transport.TransportMessage
org.elasticsearch.transport.TransportResponse
- All Implemented Interfaces:
Writeable,org.elasticsearch.common.util.concurrent.RefCounted
- Direct Known Subclasses:
ActionResponse,BaseNodeResponse,BroadcastShardResponse,LocalAllocateDangledIndices.AllocateDangledResponse,MasterFaultDetection.MasterPingResponseResponse,NodesFaultDetection.PingResponse,PeersResponse,PreVoteResponse,PublishWithJoinResponse,RecoveryResponse,SearchPhaseResult,SearchTransportService.SearchFreeContextResponse,SyncedFlushService.ShardSyncedFlushResponse,TransportResponse.Empty,TransportService.HandshakeResponse,UnicastZenPing.UnicastPingResponse
public abstract class TransportResponse extends TransportMessage
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransportResponse.EmptyNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
Constructors Constructor Description TransportResponse()Constructs a new empty transport responseTransportResponse(StreamInput in)Constructs a new transport response with the data from theStreamInput. -
Method Summary
Methods inherited from class org.elasticsearch.transport.TransportMessage
decRef, incRef, remoteAddress, remoteAddress, tryIncRefMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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:
java.io.IOException
-