Interface Transport

All Superinterfaces:
, , LifecycleComponent, org.elasticsearch.core.Releasable
All Known Implementing Classes:
TcpTransport

public interface Transport extends LifecycleComponent
  • Method Details

    • registerRequestHandler

      default <Request extends TransportRequest> void registerRequestHandler(RequestHandlerRegistry<Request> reg)
      Registers a new request handler
    • setMessageListener

      void setMessageListener(TransportMessageListener listener)
    • setSlowLogThreshold

      default void setSlowLogThreshold(org.elasticsearch.core.TimeValue slowLogThreshold)
    • isSecure

      default boolean isSecure()
    • boundAddress

      BoundTransportAddress boundAddress()
      The address the transport is bound on.
    • profileBoundAddresses

      <,​BoundTransportAddress> profileBoundAddresses()
      Further profile bound addresses
      Returns:
      null iff profiles are unsupported, otherwise a map with name of profile and its bound transport address
    • addressesFromString

       address) throws
      Returns an address from its string representation.
      Throws:
    • getDefaultSeedAddresses

      <> getDefaultSeedAddresses()
      Returns a list of all local addresses for this transport
    • openConnection

      void openConnection(DiscoveryNode node, ConnectionProfile profile, ActionListener<Transport.Connection> listener)
      Opens a new connection to the given node. When the connection is fully connected, the listener is called. The ActionListener will be called on the calling thread or the generic thread pool.
    • getStats

      TransportStats getStats()
    • getResponseHandlers

      Transport.ResponseHandlers getResponseHandlers()
    • getRequestHandlers

      Transport.RequestHandlers getRequestHandlers()