java.lang.Object
org.elasticsearch.transport.TransportMessage
- All Implemented Interfaces:
Writeable,RefCounted
- Direct Known Subclasses:
AbstractTransportRequest,TransportResponse
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from interface org.elasticsearch.core.RefCounted
ALWAYS_REFERENCED -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleandecRef()Note that the lifetime of an outboundTransportMessagelasts at least until it has been fully sent over the network, and it may be closed on a network thread in a context in which there's a risk of stack overflows if on close it calls back into the network layer in a manner that might end up nesting too deeply.booleanvoidincRef()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.core.RefCounted
mustIncRef
-
Constructor Details
-
TransportMessage
public TransportMessage()Constructs a new empty transport message
-
-
Method Details
-
incRef
public void incRef()- Specified by:
incRefin interfaceRefCounted
-
tryIncRef
public boolean tryIncRef()- Specified by:
tryIncRefin interfaceRefCounted
-
decRef
public boolean decRef()Note that the lifetime of an outboundTransportMessagelasts at least until it has been fully sent over the network, and it may be closed on a network thread in a context in which there's a risk of stack overflows if on close it calls back into the network layer in a manner that might end up nesting too deeply. When in doubt, dispatch any further work onto a separate thread.- Specified by:
decRefin interfaceRefCounted
-
hasReferences
public boolean hasReferences()- Specified by:
hasReferencesin interfaceRefCounted
-