public class BytesTransportRequest extends TransportRequest
TransportRequest.Empty
headers
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, getDescription
remoteAddress, remoteAddress
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
public BytesTransportRequest()
public BytesTransportRequest(BytesReference bytes, Version version)
public Version version()
public BytesReference bytes()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
readFrom
in class TransportMessage<TransportRequest>
IOException
public void writeThin(StreamOutput out) throws IOException
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
writeTo
in class TransportMessage<TransportRequest>
IOException
Copyright © 2009–2017. All rights reserved.