diff --git a/bom/application/pom.xml b/bom/application/pom.xml index 19ca0da5b980c..c7124486ae1f9 100644 --- a/bom/application/pom.xml +++ b/bom/application/pom.xml @@ -43,7 +43,7 @@ 3.2.0 3.0.4 2.1.22 - 1.4.3 + 1.4.4 2.1.0 5.3.1 3.3.3 diff --git a/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfig.java b/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfig.java index 77c25710d9c0e..001fe712f0244 100644 --- a/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfig.java +++ b/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfig.java @@ -33,6 +33,20 @@ public class GraphQLClientConfig { @ConfigItem(defaultValue = "graphql-transport-ws") public Optional> subprotocols; + /** + * If true, then queries and mutations will run over the websocket transport rather than pure HTTP. + * Off by default, because it has higher overhead. + */ + @ConfigItem + public Optional executeSingleResultOperationsOverWebsocket; + + /** + * Maximum time in milliseconds that will be allowed to wait for the server to acknowledge a websocket connection + * (send a subprotocol-specific ACK message). + */ + @ConfigItem + public Optional websocketInitializationTimeout; + /** * The trust store location. Can point to either a classpath resource or a file. */ diff --git a/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java b/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java index c10faef75c091..79c6f9282c045 100644 --- a/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java +++ b/extensions/smallrye-graphql-client/runtime/src/main/java/io/quarkus/smallrye/graphql/client/runtime/GraphQLClientConfigurationMergerBean.java @@ -74,6 +74,9 @@ private GraphQLClientConfiguration toSmallRyeNativeConfiguration(GraphQLClientCo quarkusConfig.proxyUsername.ifPresent(transformed::setProxyUsername); quarkusConfig.proxyPassword.ifPresent(transformed::setProxyPassword); quarkusConfig.maxRedirects.ifPresent(transformed::setMaxRedirects); + quarkusConfig.executeSingleResultOperationsOverWebsocket + .ifPresent(transformed::setExecuteSingleOperationsOverWebsocket); + quarkusConfig.websocketInitializationTimeout.ifPresent(transformed::setWebsocketInitializationTimeout); return transformed; }