java.util.concurrent
Class Executors.PrivilegedCallable<T>
java.lang.Object
java.util.concurrent.Executors.PrivilegedCallable<T>
- All Implemented Interfaces:
- Callable<T>
- Enclosing class:
- Executors
static final class Executors.PrivilegedCallable<T>
- extends Object
- implements Callable<T>
A callable that runs under established access control settings
|
Method Summary |
T |
call()
Computes a result, or throws an exception if unable to do so. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Executors.PrivilegedCallable
Executors.PrivilegedCallable(Callable<T> task)
call
public T call()
throws Exception
- Description copied from interface:
Callable
- Computes a result, or throws an exception if unable to do so.
- Specified by:
call in interface Callable<T>
- Returns:
- computed result
- Throws:
Exception - if unable to compute a result
Please submit a feedback, bug or feature