public class StoppableThreadFactory
extends java.lang.Object
implements java.util.concurrent.ThreadFactory
Constructor and Description |
---|
StoppableThreadFactory(EnvironmentImpl envImpl,
java.lang.String threadName,
java.util.logging.Logger logger)
This kind of StoppableThreadFactory will cause invalidation if an
unhandled exception occurs.
|
StoppableThreadFactory(java.lang.String threadName,
java.util.logging.Logger logger)
This kind of StoppableThreadFactory will NOT cause invalidation if an
unhandled exception occurs, because there is no environment provided.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Thread |
newThread(java.lang.Runnable runnable) |
public StoppableThreadFactory(EnvironmentImpl envImpl, java.lang.String threadName, java.util.logging.Logger logger)
public StoppableThreadFactory(java.lang.String threadName, java.util.logging.Logger logger)
Copyright (c) 2004-2012 Oracle. All rights reserved.