Skip to content

Commit

Permalink
Better document virtual threads
Browse files Browse the repository at this point in the history
Signed-off-by: jansupol <[email protected]>
  • Loading branch information
jansupol authored and senivam committed May 24, 2024
1 parent af6c501 commit 408e464
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public final class CommonProperties {
* The default is {@link java.util.concurrent.Executors#defaultThreadFactory()} on platform threads and
* {@code Thread.ofVirtual().factory()} on virtual threads.
* </p>
* @since 2.44
* @since 3.1.7
*/
public static String THREAD_FACTORY = "jersey.config.threads.factory";

Expand All @@ -338,9 +338,9 @@ public final class CommonProperties {
* of threads by {@code FixedThreadPool}.
* </p>
* <p>
* The default is {@code false} for this version of Jersey, and {@code true} for Jersey 3.1+.
* The default is {@code false} for this version of Jersey.
* </p>
* @since 2.44
* @since 3.1.7
*/
public static String USE_VIRTUAL_THREADS = "jersey.config.threads.use.virtual";

Expand Down
6 changes: 3 additions & 3 deletions docs/src/main/docbook/appendix-properties.xml
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@
</entry>
</row>
<row>
<entry>&jersey.common.CommonProperties.THREAD_FACTORY;(Jersey 2.44 or later)
<entry>&jersey.common.CommonProperties.THREAD_FACTORY;(Jersey 3.1.7 or later)
</entry>
<entry>
<literal>jersey.config.threads.factory</literal>
Expand All @@ -220,7 +220,7 @@
</entry>
</row>
<row>
<entry>&jersey.common.CommonProperties.USE_VIRTUAL_THREADS;(Jersey 2.44 or later)
<entry>&jersey.common.CommonProperties.USE_VIRTUAL_THREADS;(Jersey 3.1.7 or later)
</entry>
<entry>
<literal>jersey.config.threads.use.virtual</literal>
Expand All @@ -231,7 +231,7 @@
of threads by <literal>FixedThreadPool</literal>.
</para>
<para>
The default is &lit.false; for this version of Jersey, and &lit.true; for Jersey 3.1+.
The default is &lit.false; for this version of Jersey.
</para>
</entry>
</row>
Expand Down

0 comments on commit 408e464

Please sign in to comment.