クラス AbstractSubscriptionRegistry
java.lang.ObjectSE
org.springframework.messaging.simp.broker.AbstractSubscriptionRegistry
- 実装されたすべてのインターフェース:
SubscriptionRegistry
- 既知の直属サブクラス
DefaultSubscriptionRegistry
SubscriptionRegistry
の実装の抽象基本クラス。メッセージ内の情報を検索しますが、実際の保存と取得のために抽象メソッドに委譲します。- 導入:
- 4.0
- 作成者:
- Rossen Stoyanchev
フィールドサマリー
フィールドコンストラクターのサマリー
コンストラクター方法の概要
修飾子と型メソッド説明protected abstract void
addSubscriptionInternal
(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 void
registerSubscription
(Message<?> message) 指定されたメッセージが表すサブスクリプションを登録します。protected abstract void
removeSubscriptionInternal
(StringSE sessionId, StringSE subscriptionId, Message<?> message) final void
unregisterSubscription
(Message<?> message) サブスクリプションの登録を解除します。クラス java.lang.ObjectSE から継承されたメソッド
clone, equalsSE, finalize, getClass, hashCode, notify, notifyAll, toString, wait, waitSE, waitSE
インターフェース org.springframework.messaging.simp.broker.SubscriptionRegistry から継承されたメソッド
unregisterAllSubscriptions
フィールドの詳細
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)