public class BytesTransportRequest extends TransportRequest
TransportRequest.Emptyheaders| Constructor and Description |
|---|
BytesTransportRequest() |
BytesTransportRequest(BytesReference bytes,
Version version) |
| Modifier and Type | Method and Description |
|---|---|
BytesReference |
bytes() |
void |
readFrom(StreamInput in) |
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) |
createTask, getDescriptionremoteAddress, remoteAddresscontextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContextpublic BytesTransportRequest()
public BytesTransportRequest(BytesReference bytes, Version version)
public Version version()
public BytesReference bytes()
public void readFrom(StreamInput in) throws IOException
readFrom in interface StreamablereadFrom in class TransportMessage<TransportRequest>IOExceptionpublic void writeThin(StreamOutput out) throws IOException
IOExceptionpublic void writeTo(StreamOutput out) throws IOException
writeTo in interface StreamablewriteTo in class TransportMessage<TransportRequest>IOExceptionCopyright © 2009–2017. All rights reserved.