Lines Matching defs:callable

404      * @return a callable object
407 public static <T> Callable<T> callable(Runnable task, T result) {
417 * @return a callable object
420 public static Callable<Object> callable(Runnable task) {
430 * @return a callable object
433 public static Callable<Object> callable(final PrivilegedAction<?> action) {
445 * @return a callable object
448 public static Callable<Object> callable(final PrivilegedExceptionAction<?> action) {
457 * execute the given {@code callable} under the current access
464 * @param callable the underlying task
465 * @param <T> the type of the callable's result
466 * @return a callable object
467 * @throws NullPointerException if callable null
469 public static <T> Callable<T> privilegedCallable(Callable<T> callable) {
470 if (callable == null)
472 return new PrivilegedCallable<T>(callable);
477 * execute the given {@code callable} under the current access
487 * @param callable the underlying task
488 * @param <T> the type of the callable's result
489 * @return a callable object
490 * @throws NullPointerException if callable null
495 public static <T> Callable<T> privilegedCallableUsingCurrentClassLoader(Callable<T> callable) {
496 if (callable == null)
498 return new PrivilegedCallableUsingCurrentClassLoader<T>(callable);
504 * A callable that runs given task and returns given result.
520 * A callable that runs under established access control settings.
546 * A callable that runs under established access control settings and
737 public <V> ScheduledFuture<V> schedule(Callable<V> callable, long delay, TimeUnit unit) {
738 return e.schedule(callable, delay, unit);