Java in a Nutshell, 5th Edition [Electronic resources] نسخه متنی

اینجــــا یک کتابخانه دیجیتالی است

با بیش از 100000 منبع الکترونیکی رایگان به زبان فارسی ، عربی و انگلیسی

Java in a Nutshell, 5th Edition [Electronic resources] - نسخه متنی

| نمايش فراداده ، افزودن یک نقد و بررسی
افزودن به کتابخانه شخصی
ارسال به دوستان
جستجو در متن کتاب
بیشتر
تنظیمات قلم

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

روز نیمروز شب
جستجو در لغت نامه
بیشتر
لیست موضوعات
توضیحات
افزودن یادداشت جدید


Callable<V>java.util.concurrent

Java 5.0

This interface is a generalized form of the
java.lang.Runnable interface. Unlike the
run( ) method of Runnable, the
call( ) method of Callable can
return a value and throw an Exception.
Callable is a generic type, and the type variable
V represents the return type of the
call( ) method.

An ExecutorService accepts
Callable objects for asynchronous execution and
returns a Future object representing the future
result of the call( ) method.

public interface

Callable<V> {
// Public Instance Methods
V

call ( ) throws Exception;
}


Passed To


AbstractExecutorService.submit( ),
CompletionService.submit( ),
ExecutorCompletionService.submit( ),
Executors.{privilegedCallable( ),
privilegedCallableUsingCurrentClassLoader( )},
ExecutorService.submit( ),
FutureTask.FutureTask( ),
ScheduledExecutorService.schedule( ),
ScheduledThreadPoolExecutor.{schedule( ),
submit( )}

Returned By


Executors.{callable( ),
privilegedCallable( ),
privilegedCallableUsingCurrentClassLoader( )}


    / 1191