Create a thread factory that returns threads that are legitimate
StoppableThreads. Like StoppableThreads, if an environment is provided, the
threads will invalidate if an exception is not handled, and are registered
with the exception listener.If a logger is provided, StoppableThreads log
This factory is used in conjunction with the ExecutorService and
This kind of StoppableThreadFactory will cause invalidation if an
unhandled exception occurs.
This kind of StoppableThreadFactory will NOT cause invalidation if an
unhandled exception occurs, because there is no environment provided.
this(null, threadName, logger);
super(envImpl, null, runnable, threadName);