クラス AbstractSubscriptionRegistry
java.lang.ObjectSE
org.springframework.messaging.simp.broker.AbstractSubscriptionRegistry
- 実装されているすべてのインターフェース:
SubscriptionRegistry
- 既知の直属サブクラス
DefaultSubscriptionRegistry
SubscriptionRegistry の実装の抽象基本クラス。メッセージ内の情報を検索しますが、実際の保存と取得のために抽象メソッドに委譲します。- 導入:
- 4.0
- 作成者:
- Rossen Stoyanchev
フィールドのサマリー
フィールドコンストラクターの概要
コンストラクターメソッドのサマリー
修飾子と型メソッド説明protected abstract voidaddSubscriptionInternal(StringSE sessionId, StringSE subscriptionId, StringSE destination, Message<?> message) final MultiValueMap<StringSE, StringSE> findSubscriptions(Message<?> message) 指定されたメッセージを受信するすべてのサブスクリプションを検索します。protected abstract MultiValueMap<StringSE, StringSE> findSubscriptionsInternal(StringSE destination, Message<?> message) final voidregisterSubscription(Message<?> message) 指定されたメッセージが表すサブスクリプションを登録します。protected abstract voidremoveSubscriptionInternal(StringSE sessionId, StringSE subscriptionId, Message<?> message) final voidunregisterSubscription(Message<?> message) サブスクリプションの登録を解除します。クラス ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSEインターフェース SubscriptionRegistry から継承されたメソッド
unregisterAllSubscriptions
フィールドの詳細
logger
protected final org.apache.commons.logging.Log logger
コンストラクターの詳細
AbstractSubscriptionRegistry
public AbstractSubscriptionRegistry()
メソッドの詳細
registerSubscription
インターフェースからコピーされた説明:SubscriptionRegistry指定されたメッセージが表すサブスクリプションを登録します。- 次で指定:
- インターフェース
SubscriptionRegistryのregisterSubscription - パラメーター:
message- サブスクリプションリクエスト
unregisterSubscription
インターフェースからコピーされた説明:SubscriptionRegistryサブスクリプションの登録を解除します。- 次で指定:
- インターフェース
SubscriptionRegistryのunregisterSubscription - パラメーター:
message- サブスクリプション解除のリクエスト
findSubscriptions
インターフェースからコピーされた説明:SubscriptionRegistry指定されたメッセージを受信するすべてのサブスクリプションを検索します。返されるマップは反復しても安全であり、変更されることはありません。- 次で指定:
- インターフェース
SubscriptionRegistryのfindSubscriptions - パラメーター:
message- メッセージ- 戻り値:
- sessionId-subscriptionId のペアを持つ
MultiValueMap(空の可能性あり)
addSubscriptionInternal
removeSubscriptionInternal
findSubscriptionsInternal
protected abstract MultiValueMap<StringSE,StringSE> findSubscriptionsInternal(StringSE destination, Message<?> message)