File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
operator/src/main/java/oracle/kubernetes/operator/helpers Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -29,10 +29,7 @@ public class ClientPool extends Pool<ApiClient> {
29
29
private static final ClientFactory FACTORY = new DefaultClientFactory ();
30
30
31
31
public static void initialize (ThreadFactory threadFactory ) {
32
- ClientPool .threadFactory =
33
- (r ) -> {
34
- return threadFactory .newThread (wrapRunnable (r ));
35
- };
32
+ ClientPool .threadFactory = threadFactory ;
36
33
}
37
34
38
35
private static Runnable wrapRunnable (Runnable r ) {
@@ -108,7 +105,12 @@ public ApiClient get() {
108
105
60 ,
109
106
TimeUnit .SECONDS ,
110
107
new SynchronousQueue <Runnable >(),
111
- threadFactory );
108
+ threadFactory ) {
109
+ @ Override
110
+ public void execute (Runnable command ) {
111
+ wrapRunnable (command );
112
+ }
113
+ };
112
114
client .getHttpClient ().setDispatcher (new Dispatcher (exec ));
113
115
}
114
116
You can’t perform that action at this time.
0 commit comments