パッケージ jakarta.enterprise.event
インターフェース NotificationOptions
public interface NotificationOptions通知オプションは、オブザーバー通知を構成するために使用されます。- 導入:
- 2.0
- 作成者:
- Martin Kouba
- 関連事項:
Event.fireAsync(Object, NotificationOptions)
ネストされたクラスの要約
ネストされたクラス 修飾子と型 インターフェース 説明 static interfaceNotificationOptions.Builder通知オプションビルダー。
メソッドのサマリー
すべてのメソッド 静的メソッド インスタンスメソッド 抽象メソッド 修飾子と型 メソッド 説明 static NotificationOptions.Builderbuilder()ObjectSEget(StringSE optionName)ExecutorSEgetExecutor()static NotificationOptionsof(StringSE optionName, ObjectSE optionValue)static NotificationOptionsofExecutor(ExecutorSE executor)
メソッドの詳細
getExecutor
ExecutorSE getExecutor()
- 戻り値:
- 非同期イベントの実行に使用されるエグゼキュータ
get
ObjectSE get(StringSE optionName)
- パラメーター:
optionName- 値を取得するオプションの名前- 戻り値:
- オプションの値、または指定された名前のオプションが存在しない場合は
null
ofExecutor
static NotificationOptions ofExecutor(ExecutorSE executor)
- パラメーター:
executor- オブザーバー通知を処理するための特定のExecutorSE- 戻り値:
- 遺言執行者の不変の所有者
of
static NotificationOptions of(StringSE optionName, ObjectSE optionValue)
- パラメーター:
optionName- 設定するオプションの名前optionValue- オプションの値- 戻り値:
- 単一オプションの不変のホルダー
builder
static NotificationOptions.Builder builder()
- 戻り値:
- オプションビルダー