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
ConstructorDescriptionConstructs a new empty transport messageConstructs a new transport message with the data from theStreamInput
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
decRef()
void
incRef()
void
remoteAddress(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:
incRef
in interfaceorg.elasticsearch.core.RefCounted
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRef
in interfaceorg.elasticsearch.core.RefCounted
-
decRef
public boolean decRef()- Specified by:
decRef
in interfaceorg.elasticsearch.core.RefCounted
-