public class TimeoutThreadPoolBuilder extends Object
ScheduledThreadPoolExecutor
for the request timeout and client
execution timeout featuresConstructor and Description |
---|
TimeoutThreadPoolBuilder() |
Modifier and Type | Method and Description |
---|---|
static ScheduledThreadPoolExecutor |
buildDefaultTimeoutThreadPool(String name)
Creates a
ScheduledThreadPoolExecutor with custom name for the threads. |
public static ScheduledThreadPoolExecutor buildDefaultTimeoutThreadPool(String name)
ScheduledThreadPoolExecutor
with custom name for the threads.name
- the prefix to add to the thread name in ThreadFactory.Copyright © 2024. All rights reserved.