public final class NewThreadAction extends Object implements PrivilegedAction
| Constructor and Description |
|---|
NewThreadAction(Runnable runnable,
String name,
boolean daemon)
Creates an action that will create a new thread in the system thread group.
|
NewThreadAction(Runnable runnable,
String name,
boolean daemon,
boolean user)
Creates an action that will create a new thread.
|
public NewThreadAction(Runnable runnable, String name, boolean daemon)
runnable - the Runnable for the new thread to executename - the name of the new threaddaemon - if true, new thread will be a daemon thread; if false, new thread will not be
a daemon threadpublic NewThreadAction(Runnable runnable, String name, boolean daemon, boolean user)
runnable - the Runnable for the new thread to executename - the name of the new threaddaemon - if true, new hread will be a daemon thread; if false, new thread will not be
a daemon threaduser - if true, thread will be created in a non-system thread group; if false,
thread will be created in the system thread grouppublic Object run()
run in interface PrivilegedActionCopyright © GigaSpaces.