ScheduledThreadPoolExecutor.Schedule メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
オーバーロード
| 名前 | 説明 |
|---|---|
| Schedule(IRunnable, Int64, TimeUnit) |
指定された遅延後に有効になるワンショット アクションを作成して実行します。 |
| Schedule(ICallable, Int64, TimeUnit) |
指定された遅延後に有効になる、値を返すワンショット タスクを送信します。 |
Schedule(IRunnable, Int64, TimeUnit)
指定された遅延後に有効になるワンショット アクションを作成して実行します。
[Android.Runtime.Register("schedule", "(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;", "GetSchedule_Ljava_lang_Runnable_JLjava_util_concurrent_TimeUnit_Handler")]
public virtual Java.Util.Concurrent.IScheduledFuture? Schedule(Java.Lang.IRunnable? command, long delay, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("schedule", "(Ljava/lang/Runnable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;", "GetSchedule_Ljava_lang_Runnable_JLjava_util_concurrent_TimeUnit_Handler")>]
abstract member Schedule : Java.Lang.IRunnable * int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IScheduledFuture
override this.Schedule : Java.Lang.IRunnable * int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IScheduledFuture
パラメーター
- command
- IRunnable
実行するタスク
- delay
- Int64
今から実行を遅らせる時間
- unit
- TimeUnit
遅延パラメーターの時間単位
返品
タスクの保留中の完了を表し、その get() メソッドが完了時に null を返す ScheduledFuture
実装
- 属性
例外
注釈
指定された遅延後に有効になるワンショット タスクを送信します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。
適用対象
Schedule(ICallable, Int64, TimeUnit)
指定された遅延後に有効になる、値を返すワンショット タスクを送信します。
[Android.Runtime.Register("schedule", "(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;", "GetSchedule_Ljava_util_concurrent_Callable_JLjava_util_concurrent_TimeUnit_Handler")]
[Java.Interop.JavaTypeParameters(new System.String[] { "V" })]
public virtual Java.Util.Concurrent.IScheduledFuture? Schedule(Java.Util.Concurrent.ICallable? callable, long delay, Java.Util.Concurrent.TimeUnit? unit);
[<Android.Runtime.Register("schedule", "(Ljava/util/concurrent/Callable;JLjava/util/concurrent/TimeUnit;)Ljava/util/concurrent/ScheduledFuture;", "GetSchedule_Ljava_util_concurrent_Callable_JLjava_util_concurrent_TimeUnit_Handler")>]
[<Java.Interop.JavaTypeParameters(new System.String[] { "V" })>]
abstract member Schedule : Java.Util.Concurrent.ICallable * int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IScheduledFuture
override this.Schedule : Java.Util.Concurrent.ICallable * int64 * Java.Util.Concurrent.TimeUnit -> Java.Util.Concurrent.IScheduledFuture
パラメーター
- callable
- ICallable
実行する関数
- delay
- Int64
今から実行を遅らせる時間
- unit
- TimeUnit
遅延パラメーターの時間単位
返品
結果の抽出または取り消しに使用できる ScheduledFuture
実装
- 属性
注釈
指定された遅延後に有効になる、値を返すワンショット タスクを送信します。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。