Streamable, Writeable, TaskAwareRequestpublic class BytesTransportRequest extends TransportRequest
TransportRequest.EmptyWriteable.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, waitnewWriteableReadercreateTask, getDescription, setParentTaskremoteAddress, remoteAddressgetParentTask, setParentTaskpublic BytesTransportRequest()
public BytesTransportRequest(BytesReference bytes, Version version)
public Version version()
public BytesReference bytes()
public void readFrom(StreamInput in) throws java.io.IOException
StreamablereadFrom in interface StreamablereadFrom in class TransportRequestjava.io.IOExceptionpublic void writeThin(StreamOutput out) throws java.io.IOException
java.io.IOExceptionpublic void writeTo(StreamOutput out) throws java.io.IOException
StreamablewriteTo in interface StreamablewriteTo in interface WriteablewriteTo in class TransportRequestjava.io.IOException