Package org.elasticsearch.transport
Class TransportMessage
- java.lang.Object
-
- org.elasticsearch.transport.TransportMessage
-
- All Implemented Interfaces:
Streamable
,Writeable
- Direct Known Subclasses:
TransportRequest
,TransportResponse
public abstract class TransportMessage extends java.lang.Object implements Streamable, Writeable
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V>
-
-
Constructor Summary
Constructors Constructor Description TransportMessage()
Constructs a new empty transport messageTransportMessage(StreamInput in)
Constructs a new transport message with the data from theStreamInput
.
-
Method Summary
Modifier and Type Method Description void
readFrom(StreamInput in)
Set this object's fields from a StreamInput.TransportAddress
remoteAddress()
void
remoteAddress(TransportAddress remoteAddress)
void
writeTo(StreamOutput out)
Write this object's fields to a StreamOutput.
-
-
-
Constructor Detail
-
TransportMessage
public TransportMessage()
Constructs a new empty transport message
-
TransportMessage
public TransportMessage(StreamInput in) throws java.io.IOException
Constructs a new transport message with the data from theStreamInput
. This is currently a no-op- Throws:
java.io.IOException
-
-
Method Detail
-
remoteAddress
public void remoteAddress(TransportAddress remoteAddress)
-
remoteAddress
public TransportAddress remoteAddress()
-
readFrom
public void readFrom(StreamInput in) throws java.io.IOException
Description copied from interface:Streamable
Set this object's fields from a StreamInput.- Specified by:
readFrom
in interfaceStreamable
- Throws:
java.io.IOException
-
writeTo
public void writeTo(StreamOutput out) throws java.io.IOException
Description copied from interface:Streamable
Write this object's fields to a StreamOutput.- Specified by:
writeTo
in interfaceStreamable
- Specified by:
writeTo
in interfaceWriteable
- Throws:
java.io.IOException
-
-