接口 SubscriptionRegistry

    • 方法详细资料

      • registerSubscription

        void registerSubscription​(Message<?> subscribeMessage)
        Register a subscription represented by the given message.
        参数:
        subscribeMessage - the subscription request
      • unregisterSubscription

        void unregisterSubscription​(Message<?> unsubscribeMessage)
        Unregister a subscription.
        参数:
        unsubscribeMessage - the request to unsubscribe
      • findSubscriptions

        MultiValueMap<String,​StringfindSubscriptions​(Message<?> message)
        Find all subscriptions that should receive the given message. The map returned is safe to iterate and will never be modified.
        参数:
        message - the message
        返回:
        a MultiValueMap with sessionId-subscriptionId pairs (possibly empty)