Skip to content

Commit 1504174

Browse files
committed
Make JettyConnectorThreadPool#newThread public to comply with Jetty 9.4.22.v20191022
Signed-off-by: Jan Supol <jan.supol@oracle.com>
1 parent 4c10f29 commit 1504174

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

containers/jetty-http/src/main/java/org/glassfish/jersey/jetty/JettyHttpContainerFactory.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,14 +286,18 @@ public static Server createServer(final URI uri,
286286
return server;
287287
}
288288

289+
// TODO: Use https://www.eclipse.org/jetty/javadoc/current/org/eclipse/jetty/util/thread/QueuedThreadPool.html
290+
// #%3Cinit%3E(int,int,int,int,java.util.concurrent.BlockingQueue,java.lang.ThreadGroup,java.util.concurrent.ThreadFactory)
291+
//
292+
// Keeping this for backwards compatibility for the time being
289293
private static final class JettyConnectorThreadPool extends QueuedThreadPool {
290294
private final ThreadFactory threadFactory = new ThreadFactoryBuilder()
291295
.setNameFormat("jetty-http-server-%d")
292296
.setUncaughtExceptionHandler(new JerseyProcessingUncaughtExceptionHandler())
293297
.build();
294298

295299
@Override
296-
protected Thread newThread(Runnable runnable) {
300+
public Thread newThread(Runnable runnable) {
297301
return threadFactory.newThread(runnable);
298302
}
299303
}

0 commit comments

Comments
 (0)