Class TransportMessage

java.lang.Object
org.elasticsearch.transport.TransportMessage
All Implemented Interfaces:
Writeable, org.elasticsearch.core.RefCounted
Direct Known Subclasses:
TransportRequest, TransportResponse

public abstract class TransportMessage extends Object implements Writeable, org.elasticsearch.core.RefCounted
  • Constructor Details

    • TransportMessage

      public TransportMessage()
      Constructs a new empty transport message
    • TransportMessage

      public TransportMessage(StreamInput in)
      Constructs a new transport message with the data from the StreamInput. This is currently a no-op
  • Method Details

    • remoteAddress

      public void remoteAddress(TransportAddress remoteAddress)
    • remoteAddress

      public TransportAddress remoteAddress()
    • incRef

      public void incRef()
      Specified by:
      incRef in interface org.elasticsearch.core.RefCounted
    • tryIncRef

      public boolean tryIncRef()
      Specified by:
      tryIncRef in interface org.elasticsearch.core.RefCounted
    • decRef

      public boolean decRef()
      Specified by:
      decRef in interface org.elasticsearch.core.RefCounted