Package org.elasticsearch.transport
Class TransportMessage
java.lang.Object
org.elasticsearch.transport.TransportMessage
- All Implemented Interfaces:
Writeable,org.elasticsearch.core.RefCounted
- Direct Known Subclasses:
TransportRequest,TransportResponse
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new empty transport messageConstructs a new transport message with the data from theStreamInput. -
Method Summary
Modifier and TypeMethodDescriptionbooleandecRef()voidincRef()voidremoteAddress(TransportAddress remoteAddress)boolean
-
Constructor Details
-
TransportMessage
public TransportMessage()Constructs a new empty transport message -
TransportMessage
Constructs a new transport message with the data from theStreamInput. This is currently a no-op
-
-
Method Details
-
remoteAddress
-
remoteAddress
-
incRef
public void incRef()- Specified by:
incRefin interfaceorg.elasticsearch.core.RefCounted
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRefin interfaceorg.elasticsearch.core.RefCounted
-
decRef
public boolean decRef()- Specified by:
decRefin interfaceorg.elasticsearch.core.RefCounted
-