/openjdk7/jdk/test/javax/swing/JPopupMenu/Separator/6547087/ |
H A D | bug6547087.java | 54 static <T> T invokeAndWait(Callable<T> callable) throws Exception { argument 55 FutureTask<T> future = new FutureTask<T>(callable);
|
/openjdk7/jdk/src/macosx/native/jobjc/src/runtime-additions/native/ |
H A D | NativeThread.m | 62 (JNIEnv *env, jclass clazz, jobject callable) 67 JNFJObjectWrapper *callableWrapper = [[JNFJObjectWrapper alloc] initWithJObject:callable withEnv:env]; 96 jobject callable = [callableWrapper jObject]; 99 self.returnValue = JNFCallObjectMethod(env, callable, jm_Callable_call);
|
/openjdk7/jdk/src/share/classes/java/util/concurrent/ |
H A D | FutureTask.java | 101 /** The underlying callable; nulled out after running */ 102 private Callable<V> callable; field in class:FutureTask 105 /** The thread running the callable; CASed during run() */ 129 * @param callable the callable task 130 * @throws NullPointerException if the callable is null 132 public FutureTask(Callable<V> callable) { argument 133 if (callable == null) 135 this.callable = callable; [all...] |
H A D | Executors.java | 363 * @return a callable object 366 public static <T> Callable<T> callable(Runnable task, T result) { method in class:Executors 376 * @return a callable object 379 public static Callable<Object> callable(Runnable task) { method in class:Executors 389 * @return a callable object 392 public static Callable<Object> callable(final PrivilegedAction<?> action) { method in class:Executors 404 * @return a callable object 407 public static Callable<Object> callable(final PrivilegedExceptionAction<?> action) { method in class:Executors 416 * called, execute the given <tt>callable</tt> under the current 423 * @param callable th 428 privilegedCallable(Callable<T> callable) argument 452 privilegedCallableUsingCurrentClassLoader(Callable<T> callable) argument 691 schedule(Callable<V> callable, long delay, TimeUnit unit) argument [all...] |
H A D | ScheduledExecutorService.java | 119 * @param callable the function to execute 125 * @throws NullPointerException if callable is null 127 public <V> ScheduledFuture<V> schedule(Callable<V> callable, argument
|
H A D | ForkJoinTask.java | 1278 final Callable<? extends T> callable; field in class:ForkJoinTask.AdaptedCallable 1280 AdaptedCallable(Callable<? extends T> callable) { argument 1281 if (callable == null) throw new NullPointerException(); 1282 this.callable = callable; 1288 result = callable.call(); 1333 * @param callable the callable action 1336 public static <T> ForkJoinTask<T> adapt(Callable<? extends T> callable) { argument 1337 return new AdaptedCallable<T>(callable); [all...] |
H A D | ScheduledThreadPoolExecutor.java | 226 ScheduledFutureTask(Callable<V> callable, long ns) { argument 227 super(callable); 403 * Modifies or replaces the task used to execute a callable. 408 * @param callable the submitted Callable 409 * @param task the task created to execute the callable 410 * @return a task that can execute the callable 414 Callable<V> callable, RunnableScheduledFuture<V> task) { 538 public <V> ScheduledFuture<V> schedule(Callable<V> callable, argument 541 if (callable == null || unit == null) 543 RunnableScheduledFuture<V> t = decorateTask(callable, 413 decorateTask( Callable<V> callable, RunnableScheduledFuture<V> task) argument [all...] |
H A D | AbstractExecutorService.java | 90 * Returns a <tt>RunnableFuture</tt> for the given callable task. 92 * @param callable the callable task being wrapped 94 * underlying callable and which, as a <tt>Future</tt>, will yield 95 * the callable's result as its result and provide for 99 protected <T> RunnableFuture<T> newTaskFor(Callable<T> callable) { argument 100 return new FutureTask<T>(callable);
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/ws/client/ |
H A D | AsyncResponseImpl.java | 52 private final Runnable callable; field in class:AsyncResponseImpl 64 this.callable = runnable; 73 callable.run();
|
/openjdk7/jdk/src/macosx/native/jobjc/src/runtime-additions/java/com/apple/jobjc/ |
H A D | Utils.java | 101 private static native <V> V performCallableOnMainThread(final Callable<V> callable) throws Exception; argument 107 * Perform callable on main thread. Exceptions that are thrown on the main thread are ignored. 114 * Perform callable on main thread, block until done, and return the result. 117 public <V> V performOnMainThread(final Callable<V> callable) throws Exception{ argument 118 return performCallableOnMainThread(callable);
|
/openjdk7/jdk/test/java/util/concurrent/Executors/ |
H A D | Throws.java | 56 new Fun(){void f(){ callable(null, "foo"); }}, 57 new Fun(){void f(){ callable((Runnable) null); }}, 58 new Fun(){void f(){ callable((PrivilegedAction<?>) null); }}, 59 new Fun(){void f(){ callable((PrivilegedExceptionAction<?>) null); }},
|
/openjdk7/jdk/test/javax/swing/RepaintManager/6608456/ |
H A D | bug6608456.java | 143 static <T> T invokeAndWait(Callable<T> callable) throws Exception { argument 144 FutureTask<T> future = new FutureTask<T>(callable);
|
/openjdk7/jdk/src/share/classes/com/sun/script/javascript/ |
H A D | RhinoScriptEngine.java | 92 protected Object doTopCall(final Callable callable, 105 return superDoTopCall(callable, cx, scope, thisObj, args); 109 return superDoTopCall(callable, cx, scope, thisObj, args); 113 private Object superDoTopCall(Callable callable, 116 return super.doTopCall(callable, cx, scope, thisObj, args);
|
/openjdk7/jdk/test/java/lang/invoke/ |
H A D | InvokeGenericTest.java | 308 MethodHandle callable(List<Class<?>> params) { method in class:InvokeGenericTest 316 MethodHandle callable(Class<?>... params) { method in class:InvokeGenericTest 317 return callable(Arrays.asList(params)); 339 MethodHandle mh = callable(Object.class, String.class); 351 MethodHandle mh = callable(Object.class, Object.class); 363 MethodHandle mh = callable(Object.class, String.class); 397 MethodHandle target = callable(expect); 475 MethodHandle mh = callable(type.parameterList()); 510 MethodHandle mh = callable(Object.class, int.class);
|
/openjdk7/jdk/test/java/util/concurrent/ScheduledThreadPoolExecutor/ |
H A D | DelayOverflow.java | 55 pool.schedule(Executors.callable(r), 0, TimeUnit.DAYS); 75 pool.schedule(Executors.callable(r), Long.MAX_VALUE, TimeUnit.DAYS);
|
/openjdk7/jdk/src/share/sample/scripting/scriptpad/src/resources/ |
H A D | conc.js | 125 Function.prototype.callable = function() { 154 return theExecutor.submit(this.callable.apply(this, arguments));
|
/openjdk7/jaxws/src/share/jaxws_classes/com/sun/xml/internal/bind/v2/runtime/reflect/ |
H A D | TransducedAccessor.java | 296 final Callable callable = context.getObjectFromId(idref,acc.valueType); 297 if(callable==null) { 305 t = (TargetT)callable.call(); 306 } catch (SAXException e) {// from callable.call 308 } catch (RuntimeException e) {// from callable.call 310 } catch (Exception e) {// from callable.call 321 TargetT t = (TargetT)callable.call(); 329 } catch (SAXException e) {// from callable.call 331 } catch (RuntimeException e) {// from callable.call 333 } catch (Exception e) {// from callable [all...] |
H A D | Lister.java | 384 Callable callable = context.getObjectFromId(id,itemType); 388 t = (callable!=null) ? callable.call() : null;
|
/openjdk7/jdk/src/share/classes/sun/tools/jconsole/inspector/ |
H A D | XOperations.java | 121 boolean callable = isCallable(operations[i].getSignature()); 122 if (callable) { 130 callable,
|
/openjdk7/jdk/src/macosx/classes/sun/lwawt/macosx/ |
H A D | LWCToolkit.java | 487 public static <T> T invokeAndWait(final Callable<T> callable, Component component) throws Exception { argument 488 final CallableWrapper<T> wrapper = new CallableWrapper<T>(callable); 494 final Callable<T> callable; field in class:LWCToolkit.CallableWrapper 498 public CallableWrapper(final Callable<T> callable) { argument 499 this.callable = callable; 504 object = callable.call();
|
H A D | CAccessibility.java | 73 static <T> T invokeAndWait(final Callable<T> callable, final Component c) { argument 75 return LWCToolkit.invokeAndWait(callable, c);
|
/openjdk7/jdk/src/share/classes/javax/swing/ |
H A D | SwingWorker.java | 292 Callable<T> callable = 300 future = new FutureTask<T>(callable) {
|
/openjdk7/jdk/test/com/sun/nio/sctp/SctpChannel/ |
H A D | Connect.java | 219 void testCCE(Callable callable) { argument 221 callable.call();
|
/openjdk7/jdk/test/java/util/concurrent/locks/Lock/ |
H A D | TimedAcquireLeak.java | 96 Callable<T> callable) throws Throwable { 98 T result = callable.call(); 95 rendezvousParent(Process p, Callable<T> callable) argument
|
/openjdk7/jdk/src/share/demo/scripting/jconsole-plugin/src/resources/ |
H A D | jconsole.js | 466 Function.prototype.callable = function() { 495 return theExecutor.submit(this.callable.apply(this, arguments));
|