public abstract class TransportMessage<TM extends TransportMessage<TM>> extends ContextAndHeaderHolder implements Streamable
context holder
that holds transient context, that is,
the context is not serialized with message.headers
Modifier | Constructor and Description |
---|---|
protected |
TransportMessage() |
protected |
TransportMessage(TM message) |
Modifier and Type | Method and Description |
---|---|
void |
readFrom(StreamInput in) |
TransportAddress |
remoteAddress() |
void |
remoteAddress(TransportAddress remoteAddress) |
void |
writeTo(StreamOutput out) |
contextSize, copyContextAndHeadersFrom, copyContextFrom, copyHeadersFrom, getContext, getFromContext, getFromContext, getHeader, getHeaders, hasHeader, hasInContext, isContextEmpty, putAllInContext, putHeader, putInContext
protected TransportMessage()
protected TransportMessage(TM message)
public void remoteAddress(TransportAddress remoteAddress)
public TransportAddress remoteAddress()
public void readFrom(StreamInput in) throws IOException
readFrom
in interface Streamable
IOException
public void writeTo(StreamOutput out) throws IOException
writeTo
in interface Streamable
IOException
Copyright © 2009–2016. All rights reserved.