Skip to content

Commit 0aa09ef

Browse files
committed
Sync documentation of main branch
1 parent 003b190 commit 0aa09ef

11 files changed

+122
-17
lines changed

_generated-doc/main/config/quarkus-all-config.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32976,7 +32976,7 @@ Kafka dev service container type.
3297632976

3297732977
Redpanda, Strimzi and kafka-native container providers are supported. Default is redpanda.
3297832978

32979-
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/vectorized/redpanda
32979+
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/redpandadata/redpanda
3298032980

3298132981
For Strimzi: See https://github.com/strimzi/test-container and https://quay.io/repository/strimzi-test-container/test-container
3298232982

_generated-doc/main/config/quarkus-kafka-client.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Kafka dev service container type.
134134

135135
Redpanda, Strimzi and kafka-native container providers are supported. Default is redpanda.
136136

137-
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/vectorized/redpanda
137+
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/redpandadata/redpanda
138138

139139
For Strimzi: See https://github.com/strimzi/test-container and https://quay.io/repository/strimzi-test-container/test-container
140140

_generated-doc/main/config/quarkus-kafka-client_quarkus.kafka.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ Kafka dev service container type.
134134

135135
Redpanda, Strimzi and kafka-native container providers are supported. Default is redpanda.
136136

137-
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/vectorized/redpanda
137+
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/redpandadata/redpanda
138138

139139
For Strimzi: See https://github.com/strimzi/test-container and https://quay.io/repository/strimzi-test-container/test-container
140140

_generated-doc/main/config/quarkus-kafka-client_quarkus.kafka.devservices.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ Kafka dev service container type.
6363

6464
Redpanda, Strimzi and kafka-native container providers are supported. Default is redpanda.
6565

66-
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/vectorized/redpanda
66+
For Redpanda: See https://docs.redpanda.com/current/get-started/quick-start/ and https://hub.docker.com/r/redpandadata/redpanda
6767

6868
For Strimzi: See https://github.com/strimzi/test-container and https://quay.io/repository/strimzi-test-container/test-container
6969

_versions/main/guides/command-mode-reference.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ Consequently, mocking CDI beans with `QuarkusMock` or `@InjectMock` is not suppo
255255

256256
It is possible to mock CDI beans by leveraging xref:getting-started-testing.adoc#testing_different_profiles[test profiles] though.
257257

258-
For instance, in the following test, the singleton `CdiBean1` will be mocked by `MockedCdiBean1`:
258+
For instance, in the following test, the launched application would receive a mocked singleton `CdiBean1`. The implementation `MockedCdiBean1` is provided by the test:
259259

260260
[source,java]
261261
----

_versions/main/guides/kafka-dev-services.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ Dev Services for Kafka supports https://redpanda.com[Redpanda], https://github/o
5656
and https://strimzi.io[Strimzi] (in https://github.com/apache/kafka/blob/trunk/config/kraft/README.md[Kraft] mode) images.
5757

5858
**Redpanda** is a Kafka compatible event streaming platform.
59-
Because it provides a fast startup times, Dev Services defaults to Redpanda images from `vectorized/redpanda`.
60-
You can select any version from https://hub.docker.com/r/vectorized/redpanda.
59+
Because it provides a fast startup times, Dev Services defaults to Redpanda images from `redpandadata/redpanda`.
60+
You can select any version from https://hub.docker.com/r/redpandadata/redpanda.
6161

6262
**kafka-native** provides images of standard Apache Kafka distribution compiled to native binary using Quarkus and GraalVM.
6363
While still being _experimental_, it provides very fast startup times with small footprint.

_versions/main/guides/native-reference.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ invoke Maven's `verify` goal with `-DskipITs=false -Dquarkus.test.integration-te
598598
generate the native image configuration.
599599
For example:
600600

601-
[source,bash]
601+
[source,bash,subs=attributes+]
602602
----
603603
$ ./mvnw verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent
604604
...
@@ -660,7 +660,7 @@ This can be useful to verify that the native integration tests work as expected,
660660
assuming that the JVM unit tests have generated the correct native image configuration.
661661
The typical workflow here would be to first run the integration tests with the native image agent as shown in the previous section:
662662

663-
[source,bash]
663+
[source,bash,subs=attributes+]
664664
----
665665
$ ./mvnw verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent
666666
...
@@ -671,7 +671,7 @@ $ ./mvnw verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-wit
671671
And then request a native build passing in the configuration apply flag.
672672
A message during the native build process will indicate that the native image agent generated configuration files are being applied:
673673

674-
[source,bash]
674+
[source,bash,subs=attributes+]
675675
----
676676
$ ./mvnw verify -Dnative -Dquarkus.native.agent-configuration-apply
677677
...
@@ -702,7 +702,7 @@ and confirm that the class and/or package making the call or being accessed is n
702702
If the missing entry is related to some resource,
703703
you should inspect the Quarkus build debug output and verify which resource patterns are being discarded, e.g.
704704

705-
[source,bash]
705+
[source,bash,subs=attributes+]
706706
----
707707
$ ./mvnw -X verify -DskipITs=false -Dquarkus.test.integration-test-profile=test-with-native-agent
708708
...

_versions/main/guides/rest-client.adoc

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,38 @@ public interface ExtensionsService {
325325
}
326326
----
327327

328+
=== Dynamic base URLs
329+
330+
The REST client allows for a per invocation override of the base URL using the `io.quarkus.rest.client.reactive.Url` annotation.
331+
332+
Here is a simple example:
333+
334+
[source, java]
335+
----
336+
package org.acme.rest.client;
337+
338+
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
339+
340+
import jakarta.ws.rs.GET;
341+
import jakarta.ws.rs.Path;
342+
import jakarta.ws.rs.PathParam;
343+
import jakarta.ws.rs.QueryParam;
344+
import java.util.Set;
345+
346+
import io.quarkus.rest.client.reactive.Url;
347+
348+
@Path("/extensions")
349+
@RegisterRestClient
350+
public interface ExtensionsService {
351+
352+
@GET
353+
@Path("/stream/{stream}")
354+
Set<Extension> getByStream(@Url String url, @PathParam("stream") String stream, @QueryParam("id") String id);
355+
}
356+
----
357+
358+
When the `url` parameter is non-null, it will override the base URL that is configured for the client (the default base URL configuration is still mandatory).
359+
328360
=== Sending large payloads
329361

330362
The REST Client is capable of sending arbitrarily large HTTP bodies without buffering the contents in memory, if one of the following types is used:

_versions/main/guides/smallrye-fault-tolerance.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ implementation("io.quarkus:quarkus-smallrye-fault-tolerance")
576576
== Additional resources
577577

578578
SmallRye Fault Tolerance has more features than shown here.
579-
Please check the link:https://smallrye.io/docs/smallrye-fault-tolerance/6.7.0/index.html[SmallRye Fault Tolerance documentation] to learn about them.
579+
Please check the link:https://smallrye.io/docs/smallrye-fault-tolerance/6.7.1/index.html[SmallRye Fault Tolerance documentation] to learn about them.
580580

581581
In Quarkus, you can use the SmallRye Fault Tolerance optional features out of the box.
582582

@@ -608,7 +608,7 @@ quarkus.fault-tolerance.mp-compatibility=true
608608
----
609609
====
610610

611-
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.7.0/reference/programmatic-api.html[programmatic API] is present and integrated with the declarative, annotation-based API.
611+
The link:https://smallrye.io/docs/smallrye-fault-tolerance/6.7.1/reference/programmatic-api.html[programmatic API] is present and integrated with the declarative, annotation-based API.
612612
You can use the `Guard`, `TypedGuard` and `@ApplyGuard` APIs out of the box.
613613

614614
Support for Kotlin is present (assuming you use the Quarkus extension for Kotlin), so you can guard your `suspend` functions with fault tolerance annotations.

_versions/main/guides/websockets-next-reference.adoc

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -240,15 +240,19 @@ WebSocket Next supports _blocking_ and _non-blocking_ logic, akin to Quarkus RES
240240
Here are the rules governing execution:
241241

242242
* Methods annotated with `@RunOnVirtualThread`, `@Blocking` or `@Transactional` are considered blocking.
243+
* Methods declared in a class annotated with `@RunOnVirtualThread` are considered blocking.
243244
* Methods annotated with `@NonBlocking` are considered non-blocking.
244-
* Methods declared on a class annotated with `@Transactional` are considered blocking unless annotated with `@NonBlocking`.
245+
* Methods declared in a class annotated with `@Transactional` are considered blocking unless annotated with `@NonBlocking`.
245246
* If the method does not declare any of the annotations listed above the execution model is derived from the return type:
246247
** Methods returning `Uni` and `Multi` are considered non-blocking.
247248
** Methods returning `void` or any other type are considered blocking.
248-
* Kotlin `suspend` functions are always considered non-blocking and may not be annotated with `@Blocking`, `@NonBlocking` or `@RunOnVirtualThread`.
249+
* Kotlin `suspend` functions are always considered non-blocking and may not be annotated with `@Blocking`, `@NonBlocking`
250+
or `@RunOnVirtualThread` and may not be in a class annotated with `@RunOnVirtualThread`.
249251
* Non-blocking methods must execute on the connection's event loop thread.
250-
* Blocking methods must execute on a worker thread unless annotated with `@RunOnVirtualThread`.
251-
* Methods annotated with `@RunOnVirtualThread` must execute on a virtual thread, each invocation spawns a new virtual thread.
252+
* Blocking methods must execute on a worker thread unless annotated with `@RunOnVirtualThread` or in a class annotated
253+
with `@RunOnVirtualThread`.
254+
* Methods annotated with `@RunOnVirtualThread` or declared in class annotated with `@RunOnVirtualThread` must execute on
255+
a virtual thread, each invocation spawns a new virtual thread.
252256

253257
==== Method parameters
254258

0 commit comments

Comments
 (0)