Interface Transport

    • Field Detail

      • TRANSPORT_TCP_COMPRESS

        static final Setting<java.lang.Boolean> TRANSPORT_TCP_COMPRESS
    • Method Detail

      • getRequestHandler

        RequestHandlerRegistry getRequestHandler​(java.lang.String action)
        Returns the registered request handler registry for the given action or null if it's not registered
        Parameters:
        action - the action to look up
      • profileBoundAddresses

        java.util.Map<java.lang.String,​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

        TransportAddress[] addressesFromString​(java.lang.String address,
                                               int perAddressLimit)
                                        throws java.net.UnknownHostException
        Returns an address from its string representation.
        Throws:
        java.net.UnknownHostException
      • getLocalAddresses

        java.util.List<java.lang.String> getLocalAddresses()
        Returns a list of all local adresses for this transport
      • getInFlightRequestBreaker

        default CircuitBreaker getInFlightRequestBreaker()
      • openConnection

        Transport.Connection openConnection​(DiscoveryNode node,
                                            ConnectionProfile profile)
        Opens a new connection to the given node and returns it. The returned connection is not managed by the transport implementation. This connection must be closed once it's not needed anymore.