Class SerialExecutor
- java.lang.Object
-
- io.fabric8.kubernetes.client.utils.internal.SerialExecutor
-
- All Implemented Interfaces:
Executor
public class SerialExecutor extends Object implements Executor
SeeExecutordocs
Effectively creates a derived single thread executor, runnable tasks are executed in the order they are added. This is a replacement for Executors.newSingleThreadExecutor() that uses threads in a non-dedicated way
Added shutdown support
-
-
Constructor Summary
Constructors Constructor Description SerialExecutor(Executor executor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(Runnable r)booleanisShutdown()protected voidscheduleNext()voidshutdownNow()Shutdown the executor without executing any more tasks.
-
-
-
Constructor Detail
-
SerialExecutor
public SerialExecutor(Executor executor)
-
-