Interface TransportBindingContext


public interface TransportBindingContext
Context shared with listener transport bindings.
  • Method Details

    • configuredAddress

      SocketAddress configuredAddress()
      Normalized listener address for port-capable transport bindings.
      Returns:
      configured listener address
    • listenerContext

      ListenerContext listenerContext()
      Logical listener context.
      Returns:
      listener context
    • router

      Router router()
      Router shared by the logical listener.
      Returns:
      listener router
    • requestLimit

      Limit requestLimit()
      Listener-wide request concurrency limit.
      Returns:
      listener request concurrency limit
    • connectionLimit

      Limit connectionLimit()
      Listener-wide connection admission limit.

      Transport bindings that accept connection-oriented work must acquire a permit from this limit before accepting a new connection and must release the returned token when the accepted connection finishes or fails before handling starts. The returned limit is owned and initialized by the listener.

      Returns:
      listener connection admission limit
    • listenerTls

      ListenerTlsContext listenerTls()
      Listener TLS state shared by transport bindings.

      Bindings that return TransportBinding.Security.TLS must use this context for TLS handshakes, including virtual-host TLS selection.

      Returns:
      listener TLS context
    • boundPort

      default OptionalInt boundPort()
      First bound listener port, if any.

      Port-capable bindings should use this value when present and when the listener's configured port is 0, so all port-capable bindings under the same listener converge on one runtime port.

      Returns:
      bound listener port
    • fatalBindingFailure

      void fatalBindingFailure(TransportBinding binding, Throwable cause)
      Report an unrecoverable runtime failure in a transport binding.
      Parameters:
      binding - failed binding
      cause - failure cause