Package org.elasticsearch.transport
Class TransportMessage
java.lang.Object
org.elasticsearch.transport.TransportMessage
- All Implemented Interfaces:
Writeable
,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()
boolean
void
incRef()
void
remoteAddress
(TransportAddress address) 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 interfaceRefCounted
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRef
in interfaceRefCounted
-
decRef
public boolean decRef()- Specified by:
decRef
in interfaceRefCounted
-
hasReferences
public boolean hasReferences()- Specified by:
hasReferences
in interfaceRefCounted
-