Interface TransportBindingContext
public interface TransportBindingContext
Context shared with listener transport bindings.
-
Method Summary
Modifier and TypeMethodDescriptiondefault OptionalIntFirst bound listener port, if any.Normalized listener address for port-capable transport bindings.Listener-wide connection admission limit.voidfatalBindingFailure(TransportBinding binding, Throwable cause) Report an unrecoverable runtime failure in a transport binding.Logical listener context.Listener TLS state shared by transport bindings.Listener-wide request concurrency limit.router()Router shared by the logical listener.
-
Method Details
-
configuredAddress
SocketAddress configuredAddress()Normalized listener address for port-capable transport bindings.- Returns:
- configured listener address
-
listenerContext
-
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.TLSmust use this context for TLS handshakes, including virtual-host TLS selection.- Returns:
- listener TLS context
-
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
Report an unrecoverable runtime failure in a transport binding.- Parameters:
binding- failed bindingcause- failure cause
-