Package edu.umd.cs.findbugs
Class CurrentThreadExecutorService
- java.lang.Object
-
- java.util.concurrent.AbstractExecutorService
-
- edu.umd.cs.findbugs.CurrentThreadExecutorService
-
- All Implemented Interfaces:
java.util.concurrent.Executor,java.util.concurrent.ExecutorService
@NotThreadSafe class CurrentThreadExecutorService extends java.util.concurrent.AbstractExecutorServiceAn
ExecutorServiceimplementation that runs command in the current thread. Instance of this class is not thread safe, do not share it among multiple threads. SpotBugs uses this class to keep backward compatibility (SpotBugs 3.1 run analysis on the main/current thread).- Since:
- 4.0
-
-
Field Summary
Fields Modifier and Type Field Description private booleanisShutdownprivate static org.slf4j.LoggerLOG
-
Constructor Summary
Constructors Constructor Description CurrentThreadExecutorService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanawaitTermination(long timeout, java.util.concurrent.TimeUnit unit)voidexecute(java.lang.Runnable command)booleanisShutdown()booleanisTerminated()voidshutdown()java.util.List<java.lang.Runnable>shutdownNow()
-
-
-
Method Detail
-
shutdown
public void shutdown()
-
shutdownNow
public java.util.List<java.lang.Runnable> shutdownNow()
-
isShutdown
public boolean isShutdown()
-
isTerminated
public boolean isTerminated()
-
awaitTermination
public boolean awaitTermination(long timeout, java.util.concurrent.TimeUnit unit)
-
execute
public void execute(java.lang.Runnable command)
-
-