Streamable
, Writeable
, TaskAwareRequest
public class BytesTransportRequest extends TransportRequest
TransportRequest.Empty
Writeable.Reader<V>, Writeable.Writer<V>
Constructor | Description |
---|---|
BytesTransportRequest() |
|
BytesTransportRequest(BytesReference bytes,
Version version) |
Modifier and Type | Method | Description |
---|---|---|
BytesReference |
bytes() |
|
void |
readFrom(StreamInput in) |
Set this object's fields from a StreamInput.
|
Version |
version() |
|
void |
writeThin(StreamOutput out) |
Writes the data in a "thin" manner, without the actual bytes, assumes
the actual bytes will be appended right after this content.
|
void |
writeTo(StreamOutput out) |
Write this object's fields to a StreamOutput.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createTask, getDescription, setParentTask
remoteAddress, remoteAddress
getParentTask, setParentTask
public BytesTransportRequest()
public BytesTransportRequest(BytesReference bytes, Version version)
public Version version()
public BytesReference bytes()
public void readFrom(StreamInput in) throws java.io.IOException
Streamable
readFrom
in interface Streamable
readFrom
in class TransportRequest
java.io.IOException
public void writeThin(StreamOutput out) throws java.io.IOException
java.io.IOException
public void writeTo(StreamOutput out) throws java.io.IOException
Streamable
writeTo
in interface Streamable
writeTo
in interface Writeable
writeTo
in class TransportRequest
java.io.IOException