public class StoppableThreadFactory extends Object implements ThreadFactory
| Constructor and Description |
|---|
StoppableThreadFactory(EnvironmentImpl envImpl,
String threadName,
Logger logger)
This kind of StoppableThreadFactory will cause invalidation if an
unhandled exception occurs.
|
StoppableThreadFactory(String threadName,
Logger logger)
This kind of StoppableThreadFactory will NOT cause invalidation if an
unhandled exception occurs, because there is no environment provided.
|
public StoppableThreadFactory(EnvironmentImpl envImpl, String threadName, Logger logger)
public Thread newThread(Runnable runnable)
newThread in interface ThreadFactoryCopyright © 2024. All rights reserved.