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

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

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

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

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

فونت

اندازه قلم

+ - پیش فرض

حالت نمایش

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


CompletionService<V>java.util.concurrent

Java 5.0

This interface combines the features of an
ExecutorService with the features of a
BlockingQueue. A producer thread may submit
Callable or Runnable tasks for
asynchronous execution. As each submitted task completes, its result,
in the form of a Future object, becomes available
to be removed from the queue by a consumer thread that calls
poll( ) or take( ).

This generic type declares a type variable
V, which represents the result type of all
tasks on the queue.

public interface

CompletionService<V> {
// Public Instance Methods
Future<V>

poll ( );
Future<V>

poll (long

timeout , TimeUnit

unit ) throws InterruptedException;
Future<V>

submit (Callable<V>

task );
Future<V>

submit (Runnable

task , V

result );
Future<V>

take ( ) throws InterruptedException;
}


Implementations


ExecutorCompletionService


    / 1191