| 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前 次 | フレームあり フレームなし | |||||||||
| ScheduledFuture を使用しているパッケージ | |
|---|---|
| java.util.concurrent | 並行プログラミングでよく使用されるユーティリティークラスです。 | 
| java.util.concurrent での ScheduledFuture の使用 | 
|---|
| java.util.concurrent での ScheduledFuture のサブインタフェース | |
|---|---|
 interface | 
RunnableScheduledFuture<V>
Runnable である ScheduledFuture です。 | 
| ScheduledFuture を返す java.util.concurrent のメソッド | ||
|---|---|---|
 | 
ScheduledExecutorService.schedule(Callable<V> callable,
         long delay,
         TimeUnit unit)
指定された遅延後に有効になる ScheduledFuture を作成して実行します。  | 
|
 | 
ScheduledThreadPoolExecutor.schedule(Callable<V> callable,
         long delay,
         TimeUnit unit)
 | 
|
 ScheduledFuture<?> | 
ScheduledExecutorService.schedule(Runnable command,
         long delay,
         TimeUnit unit)
指定された遅延後に有効になる単発的なアクションを作成して実行します。  | 
|
 ScheduledFuture<?> | 
ScheduledThreadPoolExecutor.schedule(Runnable command,
         long delay,
         TimeUnit unit)
 | 
|
 ScheduledFuture<?> | 
ScheduledExecutorService.scheduleAtFixedRate(Runnable command,
                    long initialDelay,
                    long period,
                    TimeUnit unit)
指定された初期遅延の経過後にはじめて有効になり、その後は指定された期間ごとに有効になる定期的なアクションを作成して実行します。  | 
|
 ScheduledFuture<?> | 
ScheduledThreadPoolExecutor.scheduleAtFixedRate(Runnable command,
                    long initialDelay,
                    long period,
                    TimeUnit unit)
 | 
|
 ScheduledFuture<?> | 
ScheduledExecutorService.scheduleWithFixedDelay(Runnable command,
                       long initialDelay,
                       long delay,
                       TimeUnit unit)
指定された初期遅延の経過後にはじめて有効になり、その後は実行の終了後から次の開始までの指定の遅延ごとに有効になる定期的なアクションを作成して実行します。  | 
|
 ScheduledFuture<?> | 
ScheduledThreadPoolExecutor.scheduleWithFixedDelay(Runnable command,
                       long initialDelay,
                       long delay,
                       TimeUnit unit)
 | 
|
  | 
JavaTM Platform Standard Ed. 6  | 
|||||||||
| 前 次 | フレームあり フレームなし | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。