Package edu.umd.cs.findbugs
Class CurrentThreadExecutorService
java.lang.Object
java.util.concurrent.AbstractExecutorService
edu.umd.cs.findbugs.CurrentThreadExecutorService
- All Implemented Interfaces:
AutoCloseable
,Executor
,ExecutorService
An ExecutorService
implementation 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
FieldsModifier and TypeFieldDescriptionprivate boolean
private static final org.slf4j.Logger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
awaitTermination
(long timeout, TimeUnit unit) void
boolean
boolean
void
shutdown()
Methods inherited from class java.util.concurrent.AbstractExecutorService
invokeAll, invokeAll, invokeAny, invokeAny, newTaskFor, newTaskFor, submit, submit, submit
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.concurrent.ExecutorService
close
-
Field Details
-
LOG
private static final org.slf4j.Logger LOG -
isShutdown
private boolean isShutdown
-
-
Constructor Details
-
CurrentThreadExecutorService
CurrentThreadExecutorService()
-
-
Method Details
-
shutdown
public void shutdown() -
shutdownNow
-
isShutdown
public boolean isShutdown() -
isTerminated
public boolean isTerminated() -
awaitTermination
-
execute
-