public final class GetThreadPoolAction extends Object implements PrivilegedAction<Executor>
| Modifier and Type | Field and Description |
|---|---|
private static Permission |
getSystemThreadPoolPermission |
private static Permission |
getUserThreadPoolPermission |
private static ThreadPool |
systemThreadPool
pool of threads for executing tasks in system thread group
|
private boolean |
user |
private static ThreadPool |
userThreadPool
pool of threads for executing tasks with user code
|
| Constructor and Description |
|---|
GetThreadPoolAction(boolean user)
Creates an action that will obtain an internal thread pool.
|
private static final ThreadPool systemThreadPool
private static final ThreadPool userThreadPool
private static final Permission getSystemThreadPoolPermission
private static final Permission getUserThreadPoolPermission
private final boolean user
public GetThreadPoolAction(boolean user)
user - if true, will obtain the non-system thread group
pool for executing user code; if false, will obtain the system
thread group poolpublic Executor run()
run in interface PrivilegedAction<Executor>Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.