Skip to content

Commit b09134b

Browse files
committed
Add Javadoc
1 parent bb5d47c commit b09134b

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/main/java/org/codehaus/plexus/archiver/zip/ConcurrentJarCreatorExecutorServiceFactory.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424
import java.util.concurrent.TimeUnit;
2525
import java.util.concurrent.atomic.AtomicInteger;
2626

27+
/**
28+
* Classic (pre Java 21) implementation. Create one thread eagerly, but allow pool to scale up to provided
29+
* number (usually set to Java reported CPU count). Apply same thread names as well.
30+
*
31+
* @since 4.10.1
32+
*/
2733
public class ConcurrentJarCreatorExecutorServiceFactory {
2834
private static final AtomicInteger POOL_COUNTER = new AtomicInteger();
2935

src/main/java21/org/codehaus/plexus/archiver/zip/ConcurrentJarCreatorExecutorServiceFactory.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,11 @@
2121
import java.util.concurrent.Executors;
2222
import java.util.concurrent.atomic.AtomicInteger;
2323

24+
/**
25+
* Post Java 21 implementation. Create one Virtual Thread per task execution. Apply same thread names as well.
26+
*
27+
* @since 4.10.1
28+
*/
2429
public class ConcurrentJarCreatorExecutorServiceFactory {
2530
private static final AtomicInteger POOL_COUNTER = new AtomicInteger();
2631

0 commit comments

Comments
 (0)