diff --git a/servicetalk-http-netty/src/main/java/io/servicetalk/http/netty/H2ProtocolConfig.java b/servicetalk-http-netty/src/main/java/io/servicetalk/http/netty/H2ProtocolConfig.java index 8f6f73c3e3..26657722d5 100644 --- a/servicetalk-http-netty/src/main/java/io/servicetalk/http/netty/H2ProtocolConfig.java +++ b/servicetalk-http-netty/src/main/java/io/servicetalk/http/netty/H2ProtocolConfig.java @@ -67,7 +67,9 @@ default String alpnId() { * @return the {@link Http2Settings} that provides a hint for the initial settings. Note that some settings may be * ignored if not supported (e.g. push promise). */ - Http2Settings initialSettings(); + default Http2Settings initialSettings() { // FIXME: 0.43 - consider removing default impl + throw new UnsupportedOperationException("H2ProtocolConfig#initialSettings() is not supported by " + getClass()); + } /** * Provide a hint on the number of bytes that the flow controller will attempt to give to a stream for each @@ -81,7 +83,10 @@ default String alpnId() { * streams (if flow control windows become constrained). * @return number of bytes. */ - int flowControlQuantum(); + default int flowControlQuantum() { // FIXME: 0.43 - consider removing default impl + throw new UnsupportedOperationException("H2ProtocolConfig#flowControlQuantum() is not supported by " + + getClass()); + } /** * Number of bytes to increment via WINDOW_UPDATE @@ -90,7 +95,10 @@ default String alpnId() { * avoid a single stream consuming all the flow control credits. * @return The number of bytes to increment the local flow control window for the connection. */ - int flowControlWindowIncrement(); + default int flowControlWindowIncrement() { // FIXME: 0.43 - consider removing default impl + throw new UnsupportedOperationException("H2ProtocolConfig#flowControlWindowIncrement() is not supported by " + + getClass()); + } /** * A policy for sending PING frames to the peer.