ActorProxyEventUtility クラス

  • java.lang.Object
    • microsoft.servicefabric.actors.client.ActorProxyEventUtility

public class ActorProxyEventUtility

アクター イベントに関連する拡張メソッドが含まれています。

メソッドの概要

修飾子と型 メソッドと説明
static<TEvent extends ActorEvents> CompletableFuture<?> subscribeAsync(ActorEventPublisher actorProxy, TEvent subscriber)

公開されたアクター イベントをサブスクライブします。

actorProxy が型でない場合 ActorProxy

TEvent が実装されない場合 ActorEvents

static<TEvent extends ActorEvents> CompletableFuture<?> subscribeAsync(ActorEventPublisher actorProxy, TEvent subscriber, Duration resubscriptionInterval)

公開されたアクター イベントをサブスクライブします。

actorProxy が型でない場合 ActorProxy

TEvent が実装されない場合 ActorEvents

static<TEvent extends ActorEvents> CompletableFuture<?> unsubscribeAsync(ActorEventPublisher actorProxy, TEvent subscriber)

公開されたアクター イベントのサブスクライブを解除します。

actorProxy が型でない場合 ActorProxy

TEvent が実装されない場合 ActorEvents

メソッドの詳細

subscribeAsync

public static static CompletableFuture subscribeAsync(ActorEventPublisher actorProxy, TEvent subscriber)

公開されたアクター イベントをサブスクライブします。

actorProxy が型でない場合 ActorProxy

TEvent が実装されない場合 ActorEvents

パラメーター:

actorProxy - イベントを発行するアクター。
subscriber - イベントを受信するサブスクライバー。

戻り値:

パブリッシュされたアクター イベントをサブスクライブする非同期操作を表すタスク。

スロー:

java.lang.IllegalArgumentException

subscribeAsync

public static static CompletableFuture subscribeAsync(ActorEventPublisher actorProxy, TEvent subscriber, Duration resubscriptionInterval)

公開されたアクター イベントをサブスクライブします。

actorProxy が型でない場合 ActorProxy

TEvent が実装されない場合 ActorEvents

パラメーター:

actorProxy - イベントを発行するアクター。
subscriber - イベントを受信するサブスクライバー。
resubscriptionInterval - サブスクリプションの再試みまでの時間。

戻り値:

パブリッシュされたアクター イベントをサブスクライブする非同期操作を表すタスク。

スロー:

java.lang.IllegalArgumentException

unsubscribeAsync

public static static CompletableFuture unsubscribeAsync(ActorEventPublisher actorProxy, TEvent subscriber)

公開されたアクター イベントのサブスクライブを解除します。

actorProxy が型でない場合 ActorProxy

TEvent が実装されない場合 ActorEvents

パラメーター:

actorProxy - イベントを発行するアクター。
subscriber - イベントを受信するサブスクライバー。

戻り値:

パブリッシュされたアクター イベントからのサブスクライブ解除の非同期操作を表すタスク。

スロー:

java.lang.IllegalArgumentException

適用対象