Class CreateThreadAction
- java.lang.Object
-
- org.wildfly.security.manager.action.CreateThreadAction
-
- All Implemented Interfaces:
PrivilegedAction<Thread>
public final class CreateThreadAction extends Object implements PrivilegedAction<Thread>
A security action to create a thread.- Author:
- David M. Lloyd
-
-
Constructor Summary
Constructors Constructor Description CreateThreadAction(Runnable target, String name)
Construct a new instance.CreateThreadAction(String name)
Construct a new instance.CreateThreadAction(ThreadGroup group, Runnable target, String name)
Construct a new instance.CreateThreadAction(ThreadGroup group, Runnable target, String name, long stackSize)
Construct a new instance.CreateThreadAction(ThreadGroup group, String name)
Construct a new instance.
-
-
-
Field Detail
-
group
private final ThreadGroup group
-
target
private final Runnable target
-
name
private final String name
-
stackSize
private final long stackSize
-
-
Constructor Detail
-
CreateThreadAction
public CreateThreadAction(String name)
Construct a new instance.- Parameters:
name
- the name of the thread (may not benull
)
-
CreateThreadAction
public CreateThreadAction(ThreadGroup group, String name)
Construct a new instance.- Parameters:
group
- the thread group to usename
- the name of the thread (may not benull
)
-
CreateThreadAction
public CreateThreadAction(Runnable target, String name)
Construct a new instance.- Parameters:
target
- the runnable targetname
- the name of the thread (may not benull
)
-
CreateThreadAction
public CreateThreadAction(ThreadGroup group, Runnable target, String name)
Construct a new instance.- Parameters:
group
- the thread group to usetarget
- the runnable targetname
- the name of the thread (may not benull
)
-
CreateThreadAction
public CreateThreadAction(ThreadGroup group, Runnable target, String name, long stackSize)
Construct a new instance.- Parameters:
group
- the thread group to usetarget
- the runnable targetname
- the name of the thread (may not benull
)stackSize
- the stack size to use
-
-
Method Detail
-
run
public Thread run()
- Specified by:
run
in interfacePrivilegedAction<Thread>
-
-